Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80 default;
- listen 8080 default;
- server_name default _;
- root "/etc/nginx/html";
- index index.php;
- error_page 405 = @fcgi2;
- location ~ .php$ {
- return 405;
- }
- location ~ ^/fpm-(status|ping)$ {
- return 405;
- }
- location ~ ^/apc-(status|clear)$ {
- return 405;
- }
- location @fcgi2 {
- fastcgi_pass fcgi-servers;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME "$fastcgi_script
- _name";
- include "fastcgi_params";
- # allow 127.0.0.1;
- # allow 10.0.0.0/24;
- # deny all;
- internal;
- }
- }
Add Comment
Please, Sign In to add comment