diff --git a/examples/nginx.conf b/examples/nginx.conf index 4b16be18..02a427b5 100644 --- a/examples/nginx.conf +++ b/examples/nginx.conf @@ -2,10 +2,12 @@ worker_processes 1; user nobody nogroup; # 'user nobody nobody;' for systems with 'nobody' as a group instead -pid /tmp/nginx.pid; -error_log /tmp/nginx.error.log; -# error_log /var/log/nginx/error.log warn; # Ubuntu 16.04 + 1.14 -# pid /var/run/nginx.pid; # Ubuntu 16.04 + 1.14 +error_log /var/log/nginx/error.log warn; # Ubuntu 16.04 + Nginx 1.14 +pid /var/run/nginx.pid; # Ubuntu 16.04 + Nginx 1.14 + +# On some systems, these settings are preferred +# pid /tmp/nginx.pid; +# error_log /tmp/nginx.error.log; events { @@ -19,7 +21,7 @@ http { include mime.types; # fallback in case we can't determine a type default_type application/octet-stream; - access_log /tmp/nginx.access.log combined; + access_log /var/log/nginx/access.log combined; sendfile on; upstream app_server {