1- worker_processes 1;
1+ worker_processes 1;
22error_log stderr warn;
33pid /run/nginx.pid ;
44
55events {
6- worker_connections 1024 ;
6+ worker_connections 1024 ;
77}
88
99http {
10- include mime.types ;
11- default_type application/octet-stream ;
10+ include mime.types ;
11+ default_type application/octet-stream ;
1212
13- log_format main_timed '$remote_addr - $remote_user [$time_local] "$request" '
14- '$status $body_bytes_sent "$http_referer" '
15- '"$http_user_agent" "$http_x_forwarded_for" '
16- '$request_time $upstream_response_time $pipe $upstream_cache_status' ;
13+ log_format main_timed '$remote_addr - $remote_user [$time_local] "$request" '
14+ '$status $body_bytes_sent "$http_referer" '
15+ '"$http_user_agent" "$http_x_forwarded_for" '
16+ '$request_time $upstream_response_time $pipe $upstream_cache_status' ;
1717
1818 access_log /dev/stdout main_timed;
1919 error_log /dev/stderr notice;
2020
21- keepalive_timeout 65 ;
21+ keepalive_timeout 65 ;
2222
2323 server {
2424 listen [::]:8080 default_server;
@@ -36,19 +36,17 @@ http {
3636 try_files $uri $uri / /index .php?q=$uri &$args ;
3737 }
3838
39- # redirect server error pages to the static page /50x.html
40- #
39+ # Redirect server error pages to the static page /50x.html
4140 error_page 500 502 503 504 /50x .html;
4241 location = /50x .html {
4342 root /var/lib/nginx/html;
4443 }
4544
46- # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
47- #
45+ # Pass the PHP scripts to PHP-FPM listening on 127.0.0.1:9000
4846 location ~ \.php$ {
4947 try_files $uri =404 ;
5048 fastcgi_split_path_info ^( .+\.php)( /.+) $;
51- fastcgi_pass 127.0.0.1:9000 ;
49+ fastcgi_pass 127.0.0.1:9000 ;
5250 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name ;
5351 fastcgi_param SCRIPT_NAME $fastcgi_script_name ;
5452 fastcgi_index index .php;
@@ -59,15 +57,13 @@ http {
5957 expires 5d ;
6058 }
6159
62- # deny access to . files, for security
63- #
60+ # Deny access to . files, for security
6461 location ~ /\. {
6562 log_not_found off;
6663 deny all;
6764 }
6865
69- # allow fpm ping and status from localhost
70- #
66+ # Allow fpm ping and status from localhost
7167 location ~ ^/( fpm-status |fpm-ping) $ {
7268 access_log off;
7369 allow 127.0.0.1 ;
0 commit comments