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.

27 lines
594 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. location ~ /(stub_status|nginx_status) {
  11. stub_status on;
  12. allow 127.0.0.1;
  13. deny all;
  14. access_log off;
  15. log_not_found off;
  16. }
  17. location ~ /(status|ping) {
  18. include fastcgi_params;
  19. allow 127.0.0.1;
  20. deny all;
  21. fastcgi_pass phpstatus;
  22. access_log off;
  23. log_not_found off;
  24. }
  25. }