You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
662 B

  1. upstream phpstatus {
  2. server 127.0.0.1:9000;
  3. server unix:/run/php/php7.0-fpm.sock;
  4. server 127.0.0.1:9070;
  5. server unix:/run/php70-fpm.sock;
  6. }
  7. server {
  8. listen 127.0.0.1:80;
  9. server_name 127.0.0.1 localhost;
  10. access_log off;
  11. log_not_found off;
  12. root /var/www/html;
  13. location ~ /(stub_status|nginx_status) {
  14. stub_status on;
  15. allow 127.0.0.1;
  16. deny all;
  17. access_log off;
  18. log_not_found off;
  19. }
  20. location ~ /(status|ping) {
  21. include fastcgi_params;
  22. allow 127.0.0.1;
  23. deny all;
  24. fastcgi_pass phpstatus;
  25. access_log off;
  26. log_not_found off;
  27. }
  28. }