centurio 609 B

1234567891011121314151617181920212223242526
  1. server {
  2. listen 80;
  3. index index.html;
  4. server_name centurio.loc;
  5. root /usr/share/nginx/html;
  6. access_log /var/log/nginx/localhost.access.log;
  7. error_log /var/log/nginx/localhost.error.log;
  8. location ~ \.(php|phar)(/.*)?$ {
  9. fastcgi_split_path_info ^(.+\.(?:php|phar))(/.*)$;
  10. fastcgi_intercept_errors on;
  11. fastcgi_index index.php;
  12. include fastcgi_params;
  13. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  14. fastcgi_param PATH_INFO $fastcgi_path_info;
  15. fastcgi_param DN $ssl_client_s_dn;
  16. fastcgi_pass php:9000;
  17. }
  18. error_page 405 =200 $uri;
  19. }