From 78842f5507e0259442311b8288fb438f584aed4d Mon Sep 17 00:00:00 2001 From: Jochen Neumeister Date: Sun, 25 Feb 2024 10:24:06 +0100 Subject: www/freenginx: add new port Freenginx is a Robust ans small WWW server Sponsored by: Netzkommune GmbH --- www/freenginx/files/patch-conf-nginx.conf | 47 +++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 www/freenginx/files/patch-conf-nginx.conf (limited to 'www/freenginx/files/patch-conf-nginx.conf') diff --git a/www/freenginx/files/patch-conf-nginx.conf b/www/freenginx/files/patch-conf-nginx.conf new file mode 100644 index 000000000000..fb38c9c3d9cc --- /dev/null +++ b/www/freenginx/files/patch-conf-nginx.conf @@ -0,0 +1,47 @@ +--- conf/nginx.conf.orig 2016-09-06 14:56:32 UTC ++++ conf/nginx.conf +@@ -2,9 +2,14 @@ + #user nobody; + worker_processes 1; + +-#error_log logs/error.log; +-#error_log logs/error.log notice; +-#error_log logs/error.log info; ++# This default error log path is compiled-in to make sure configuration parsing ++# errors are logged somewhere, especially during unattended boot when stderr ++# isn't normally logged anywhere. This path will be touched on every nginx ++# start regardless of error log location configured here. See ++# https://trac.nginx.org/nginx/ticket/147 for more info. ++# ++#error_log %%NGINX_ERRORLOG%%; ++# + + #pid logs/nginx.pid; + +@@ -33,7 +38,7 @@ http { + #gzip on; + + server { +- listen 80; ++ listen %%HTTP_PORT%%; + server_name localhost; + + #charset koi8-r; +@@ -41,7 +46,7 @@ http { + #access_log logs/host.access.log main; + + location / { +- root html; ++ root %%PREFIX%%/www/nginx; + index index.html index.htm; + } + +@@ -51,7 +56,7 @@ http { + # + error_page 500 502 503 504 /50x.html; + location = /50x.html { +- root html; ++ root %%PREFIX%%/www/nginx-dist; + } + + # proxy the PHP scripts to Apache listening on 127.0.0.1:80 -- cgit v1.2.3