server { listen 80; server_name status.linyaohong.com www.status.linyaohong.com; root /server/wwwroot/default; index index.html index.htm index.php; error_page 404 401 /404.html; error_page 502 500 503 504 /502.html; location /status { auth_basic "closed site"; auth_basic_user_file /server/application/nginx/conf/status; stub_status on; access_log off; allow 10.10.10.0/24; deny all; } location /logs { alias /server/logs; autoindex on; autoindex_exact_size off; autoindex_localtime on; add_header Cache-Control no-store; #charset utf-8,gbk; allow 10.10.10.200; deny all; } location =/php-fpm_status { #fastcgi_pass unix:/dev/shm/php-cgi-54.sock; fastcgi_pass 127.0.0.1:9000; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $fastcgi_script_name; #allow 127.0.0.1; #deny all; } access_log /server/logs/status.log main; error_log /server/logs/status.error.log; }