Protect against php files being send as static files

Olaf van der Spek nginx-forum at forum.nginx.org
Tue Mar 12 08:53:42 UTC 2019


Ian Hobson Wrote:
> http://forumm.nginx.org/read.php?2,88846,page 3

This link doesn't work..

>        try_files $uri =404;
>        fastcgi_split_path_info ^(.+\.php)(/.+)$;
>        include /etc/nginx/fastcgi_params;
>        fastcgi_param SCRIPT_FILENAME
> $document_root$fastcgi_script_name;
>        fastcgi_pass  127.0.0.1:9000;
>     }
> }

Unix sockets are recommended over TCP AFAIK.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,283274,283350#msg-283350



More information about the nginx mailing list