From b7ebc2369535a1347d8a5abba87856c18e6f536d Mon Sep 17 00:00:00 2001 From: Ludger Pottmeier Date: Tue, 8 Dec 2020 15:36:27 +0100 Subject: [PATCH] Update nginx.conf Add Configuration to run on Ubuntu as non root user --- 04_routing/webserver/nginx.conf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/04_routing/webserver/nginx.conf b/04_routing/webserver/nginx.conf index 18569c3..7650bde 100644 --- a/04_routing/webserver/nginx.conf +++ b/04_routing/webserver/nginx.conf @@ -1,4 +1,7 @@ daemon off; +# Necessary on Ubuntu +error_log /tmp/error.log; +pid /tmp/nginx.pid; events {} @@ -15,9 +18,11 @@ http { server { listen 3000; - + # comment out on windows - access_log /dev/stdout compact; + #access_log /dev/out compact; + # Necessary on Ubuntu + access_log /tmp/access.log compact; location /product/ { proxy_pass http://team_decide;