Commit aeaf1395 authored by ale's avatar ale

Merge branch 'nginx-error-log' into 'master'

Nginx error log

See merge request !118
parents 59c8a0c8 8fca277b
Pipeline #6822 passed with stage
in 3 minutes and 3 seconds
......@@ -12,7 +12,7 @@ PIDFile=/run/nginx/nginx.pid
# option, force ownership here or nginx will refuse to (re)start.
ExecStartPre=+/usr/bin/install -v -d -m 700 -o nginx -g nginx /var/cache/nginx /var/cache/nginx/temp
ExecStartPre=/usr/sbin/nginx -t -q -g 'daemon on; master_process on; error_log stderr;'
ExecStart=/usr/sbin/nginx -g 'daemon on; master_process on; error_log stderr;'
ExecStart=/usr/sbin/nginx -g 'daemon on; master_process on; error_log /dev/null;'
ExecReload=/usr/sbin/nginx -g 'daemon on; master_process on; error_log stderr;' -s reload
ExecStop=/bin/kill -TERM $MAINPID
......
......@@ -6,7 +6,7 @@ events {
}
pid /run/nginx/nginx.pid;
error_log syslog:server=unix:/dev/log,tag=nginx;
error_log syslog:server=unix:/dev/log,tag=nginx,nohostname;
http {
server_tokens off;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment