nginx.conf 527 B

12345678910111213141516171819
  1. server {
  2. listen 80;
  3. root /var/www/html;
  4. index index.php index.html;
  5. location ~ [^/]\.php(/|$) {
  6. fastcgi_split_path_info ^(.+?\.php)(/.*)$;
  7. if (!-f $document_root$fastcgi_script_name) {
  8. return 404;
  9. }
  10. # Mitigate https://httpoxy.org/ vulnerabilities
  11. fastcgi_param HTTP_PROXY "";
  12. fastcgi_pass app:9000;
  13. fastcgi_index index.php;
  14. include fastcgi_params;
  15. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  16. }
  17. }