Guest User

Untitled

a guest
May 23rd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. server {
  2. listen 80 default;
  3. listen 8080 default;
  4. server_name default _;
  5.  
  6. root "/etc/nginx/html";
  7. index index.php;
  8.  
  9. error_page 405 = @fcgi2;
  10. location ~ .php$ {
  11. return 405;
  12. }
  13.  
  14. location ~ ^/fpm-(status|ping)$ {
  15. return 405;
  16. }
  17.  
  18. location ~ ^/apc-(status|clear)$ {
  19. return 405;
  20. }
  21. location @fcgi2 {
  22. fastcgi_pass fcgi-servers;
  23. fastcgi_index index.php;
  24. fastcgi_param SCRIPT_FILENAME "$fastcgi_script
  25. _name";
  26. include "fastcgi_params";
  27. # allow 127.0.0.1;
  28. # allow 10.0.0.0/24;
  29. # deny all;
  30. internal;
  31. }
  32. }
Add Comment
Please, Sign In to add comment