1
0
mirror of https://github.com/cottow/6paster.git synced 2024-05-19 06:50:10 +00:00

Nginx PHP security update

This commit is contained in:
Theo
2013-07-29 09:33:32 -05:00
parent 32d0bb9663
commit 279a25c13b

View File

@ -13,7 +13,9 @@ server {
}
location /p {
rewrite ^/p/([a-z0-9A-Z]+)/?$ /index.php?p=$1 break;
rewrite ^/p/([a-z0-9A-Z]+)/?$ /index.php?p=$1 break;
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass <fastcgi_socket>; # example: 127.0.0.1:9000 or /tmp/php-socket
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME <www-document-root>/webroot$fastcgi_script_name;
@ -23,6 +25,8 @@ server {
location ~ \.php$ {
fastcgi_pass <fastcgi_socket>; # example: 127.0.0.1:9000 or /tmp/php-socket
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME <www-document-root>/webroot$fastcgi_script_name;
include fastcgi_params;