X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=doc%2FServer-configuration.md;h=c7b17c5aadb467c24959cb6ef2649f239f622bbb;hb=1abe655597da7b3c5b59146c4351eef59f69514c;hp=c9ec4e137861839ae8415d5ec16817ec2440683a;hpb=27cf2e671d1f35bd8c9383d008cd3733fc1c6e0d;p=github%2Fshaarli%2FShaarli.git diff --git a/doc/Server-configuration.md b/doc/Server-configuration.md index c9ec4e13..c7b17c5a 100644 --- a/doc/Server-configuration.md +++ b/doc/Server-configuration.md @@ -219,11 +219,16 @@ location ~ ~$ { ```nginx # /etc/nginx/php.conf location ~ (index)\.php$ { - # proxy PHP requests to PHP-FPM + # filter and proxy PHP requests to PHP-FPM fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_index index.php; include fastcgi.conf; } + +location ~ \.php$ { + # deny access to all other PHP scripts + deny all; +} ``` ```nginx