dodo512, сервер создает пустые логи, просто пустые файлы.
Ранее настраивал его не я, по этому не совсем понимаю, почему так.
При этом при проверке файлов:
root@cs613630:~# sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
root@cs613630:~# systemctl status nginx.service
● nginx.service - nginx - high performance web server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2020-06-20 11:33:55 MSK; 1h 14min ago
Docs: nginx.org/en/docs
Process: 1070 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=0/SUCCESS)
Process: 1123 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Main PID: 1124 (nginx)
Tasks: 3 (limit: 4915)
CGroup: /system.slice/nginx.service
├─1124 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
├─1125 nginx: worker process
└─1126 nginx: worker process
Jun 20 11:33:55 cs613630 systemd[1]: Starting nginx - high performance web server...
Jun 20 11:33:55 cs613630 systemd[1]: Started nginx - high performance web server.
root@cs613630:~#
function jarh(x) {
var y = 365;
var y2 = 31;
var remainder = x % y;
var casio = remainder % y2;
year = (x - remainder) / y;
month = (remainder - casio) / y2;
var result ="--- Лет ---" + year + "--- Месяцев ---" + month + "--- Дней ---" + casio;