php7.x-fpm.conf 374 B

1234567891011121314151617181920
  1. location ~ ^/(README|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
  2. deny all;
  3. }
  4. location ~ ^/(bin|SQL)/ {
  5. deny all;
  6. }
  7. location ~ \.php$ {
  8. try_files $uri $uri/ /index.php =404;
  9. fastcgi_pass localhost:9000;
  10. fastcgi_index index.php;
  11. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  12. include fastcgi_params;
  13. }
  14. location ~ /.ht {
  15. deny all;
  16. }