2020-08-05 14:10:58 +02:00
|
|
|
Index: conf/nginx.conf
|
|
|
|
===================================================================
|
|
|
|
--- conf/nginx.conf.orig
|
|
|
|
+++ conf/nginx.conf
|
2024-05-11 06:23:08 +02:00
|
|
|
@@ -1,16 +1,25 @@
|
2012-10-19 09:39:44 +02:00
|
|
|
|
|
|
|
-#user nobody;
|
|
|
|
+#user nginx;
|
|
|
|
worker_processes 1;
|
|
|
|
|
|
|
|
-#error_log logs/error.log;
|
|
|
|
-#error_log logs/error.log notice;
|
|
|
|
-#error_log logs/error.log info;
|
2024-05-11 06:23:08 +02:00
|
|
|
+# load_module #LIBDIR#/nginx/modules/ngx_http_echo_module.so;
|
2016-06-02 12:36:09 +02:00
|
|
|
+# load_module #LIBDIR#/nginx/modules/ngx_http_image_filter_module.so;
|
2024-05-11 06:23:08 +02:00
|
|
|
+# load_module #LIBDIR#/nginx/modules/ngx_http_lua_module.so;
|
2016-06-02 12:36:09 +02:00
|
|
|
+# load_module #LIBDIR#/nginx/modules/ngx_http_perl_module.so;
|
|
|
|
+# load_module #LIBDIR#/nginx/modules/ngx_http_xslt_filter_module.so;
|
|
|
|
+# load_module #LIBDIR#/nginx/modules/ngx_mail_module.so;
|
|
|
|
+# load_module #LIBDIR#/nginx/modules/ngx_stream_module.so;
|
|
|
|
+
|
2012-10-19 09:39:44 +02:00
|
|
|
+#error_log /var/log/nginx/error.log;
|
|
|
|
+#error_log /var/log/nginx/error.log notice;
|
|
|
|
+#error_log /var/log/nginx/error.log info;
|
|
|
|
|
|
|
|
-#pid logs/nginx.pid;
|
|
|
|
+#pid /var/run/nginx.pid;
|
|
|
|
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
+ use epoll;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-08-05 14:10:58 +02:00
|
|
|
@@ -22,7 +32,7 @@ http {
|
2012-10-19 09:39:44 +02:00
|
|
|
# '$status $body_bytes_sent "$http_referer" '
|
|
|
|
# '"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
|
|
|
|
|
- #access_log logs/access.log main;
|
|
|
|
+ #access_log /var/log/nginx/access.log main;
|
|
|
|
|
|
|
|
sendfile on;
|
|
|
|
#tcp_nopush on;
|
2020-08-05 14:10:58 +02:00
|
|
|
@@ -32,16 +42,18 @@ http {
|
2012-10-19 09:39:44 +02:00
|
|
|
|
|
|
|
#gzip on;
|
|
|
|
|
|
|
|
+ include conf.d/*.conf;
|
|
|
|
+
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name localhost;
|
|
|
|
|
|
|
|
#charset koi8-r;
|
|
|
|
|
|
|
|
- #access_log logs/host.access.log main;
|
|
|
|
+ #access_log /var/log/nginx/host.access.log main;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
- root html;
|
|
|
|
+ root /srv/www/htdocs/;
|
|
|
|
index index.html index.htm;
|
|
|
|
}
|
|
|
|
|
2020-08-05 14:10:58 +02:00
|
|
|
@@ -51,7 +63,7 @@ http {
|
2012-10-19 09:39:44 +02:00
|
|
|
#
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
location = /50x.html {
|
|
|
|
- root html;
|
|
|
|
+ root /srv/www/htdocs/;
|
|
|
|
}
|
|
|
|
|
|
|
|
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
|
2020-08-05 14:10:58 +02:00
|
|
|
@@ -63,7 +75,7 @@ http {
|
2014-09-15 16:04:39 +02:00
|
|
|
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
|
|
|
|
#
|
|
|
|
#location ~ \.php$ {
|
|
|
|
- # root html;
|
|
|
|
+ # root /srv/www/htdocs/;
|
|
|
|
# fastcgi_pass 127.0.0.1:9000;
|
|
|
|
# fastcgi_index index.php;
|
|
|
|
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
|
2020-08-05 14:10:58 +02:00
|
|
|
@@ -87,7 +99,7 @@ http {
|
2012-10-19 09:39:44 +02:00
|
|
|
# server_name somename alias another.alias;
|
|
|
|
|
|
|
|
# location / {
|
|
|
|
- # root html;
|
|
|
|
+ # root /srv/www/htdocs/;
|
|
|
|
# index index.html index.htm;
|
|
|
|
# }
|
|
|
|
#}
|
2020-08-05 14:10:58 +02:00
|
|
|
@@ -102,6 +114,10 @@ http {
|
2018-03-28 13:25:04 +02:00
|
|
|
# ssl_certificate cert.pem;
|
|
|
|
# ssl_certificate_key cert.key;
|
2020-08-05 14:10:58 +02:00
|
|
|
|
2018-03-28 13:25:04 +02:00
|
|
|
+ # Allow TLS version 1.2 only, which is a recommended default these days
|
|
|
|
+ # by international information security standards.
|
|
|
|
+ # ssl_protocols TLSv1.2;
|
2020-08-05 14:10:58 +02:00
|
|
|
+
|
2018-03-28 13:25:04 +02:00
|
|
|
# ssl_session_cache shared:SSL:1m;
|
|
|
|
# ssl_session_timeout 5m;
|
2020-08-05 14:10:58 +02:00
|
|
|
|
|
|
|
@@ -109,9 +125,11 @@ http {
|
2014-09-15 16:04:39 +02:00
|
|
|
# ssl_prefer_server_ciphers on;
|
2012-10-19 09:39:44 +02:00
|
|
|
|
|
|
|
# location / {
|
|
|
|
- # root html;
|
|
|
|
+ # root /srv/www/htdocs/;
|
|
|
|
# index index.html index.htm;
|
|
|
|
# }
|
|
|
|
#}
|
|
|
|
|
|
|
|
+ include vhosts.d/*.conf;
|
2014-09-15 16:04:39 +02:00
|
|
|
+
|
2012-10-19 09:39:44 +02:00
|
|
|
}
|