2012-10-19 09:39:44 +02:00
|
|
|
Index: conf/nginx.conf
|
|
|
|
===================================================================
|
2016-06-02 12:36:09 +02:00
|
|
|
--- conf/nginx.conf.orig
|
2012-10-19 09:39:44 +02:00
|
|
|
+++ conf/nginx.conf
|
2017-01-07 09:16:09 +01:00
|
|
|
@@ -1,16 +1,28 @@
|
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;
|
2017-01-07 09:16:09 +01:00
|
|
|
+# load_module #LIBDIR#/nginx/modules/ngx_http_fancyindex_module.so;
|
2016-06-02 12:36:09 +02:00
|
|
|
+# load_module #LIBDIR#/nginx/modules/ngx_http_geoip_module.so;
|
2017-01-07 09:16:09 +01:00
|
|
|
+# load_module #LIBDIR#/nginx/modules/ngx_http_headers_more_filter_module.so;
|
2016-06-02 12:36:09 +02:00
|
|
|
+# load_module #LIBDIR#/nginx/modules/ngx_http_image_filter_module.so;
|
|
|
|
+# 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;
|
2017-01-07 09:16:09 +01:00
|
|
|
+# load_module #LIBDIR#/nginx/modules/ngx_rtmp_module.so;
|
|
|
|
+# load_module #LIBDIR#/nginx/modules/ngx_stream_geoip_module.so;
|
2016-06-02 12:36:09 +02:00
|
|
|
+# 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-01-07 09:16:09 +01:00
|
|
|
@@ -22,7 +34,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;
|
2017-01-07 09:16:09 +01:00
|
|
|
@@ -32,16 +44,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;
|
|
|
|
}
|
|
|
|
|
2017-01-07 09:16:09 +01:00
|
|
|
@@ -51,7 +65,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
|
2017-01-07 09:16:09 +01:00
|
|
|
@@ -63,7 +77,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;
|
2017-01-07 09:16:09 +01:00
|
|
|
@@ -87,7 +101,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;
|
|
|
|
# }
|
|
|
|
#}
|
2017-01-07 09:16:09 +01:00
|
|
|
@@ -109,9 +123,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
|
|
|
}
|