From a047d4f23fcd5803571b6f24adf52be1c9fd5d05 Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 16 May 2018 12:11:18 -0700 Subject: [PATCH 1/3] Pid and Logging changes PID didn't work at all on Ubuntu 16.04 with the provided sample, my commented out change does, also added logging change to conform to what is out of the box. --- examples/nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/nginx.conf b/examples/nginx.conf index b06cccf8..4b16be18 100644 --- a/examples/nginx.conf +++ b/examples/nginx.conf @@ -4,6 +4,9 @@ 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 + events { worker_connections 1024; # increase if you have lots of clients From a80052e66ac630b64a25c9c329e1dd6abfe3f50a Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 19 May 2018 00:01:05 -0700 Subject: [PATCH 2/3] Changes based on feedback I also changed the location for access.log --- examples/nginx.conf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 { From 66ec02129150e434d82820dcefafbf8229cbf92b Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 19 May 2018 00:54:48 -0700 Subject: [PATCH 3/3] All good MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … final edits. --- examples/nginx.conf | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/examples/nginx.conf b/examples/nginx.conf index 02a427b5..405290b1 100644 --- a/examples/nginx.conf +++ b/examples/nginx.conf @@ -2,13 +2,8 @@ worker_processes 1; user nobody nogroup; # 'user nobody nobody;' for systems with 'nobody' as a group instead -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; - +error_log /var/log/nginx/error.log warn; +pid /var/run/nginx.pid; events { worker_connections 1024; # increase if you have lots of clients