X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=doc%2FServer-configuration.html;h=3aa897225da720fc3d887b7b2b854d3c0a1d52ee;hb=refs%2Fpull%2F400%2Fhead;hp=e4e383a3a2dd24ce8136d10c16533036325a25e3;hpb=6335a0fc0ce0c2f962333f0b4d6baac1671df901;p=github%2Fshaarli%2FShaarli.git diff --git a/doc/Server-configuration.html b/doc/Server-configuration.html index e4e383a3..3aa89722 100644 --- a/doc/Server-configuration.html +++ b/doc/Server-configuration.html @@ -36,6 +36,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
# /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;
}
# /etc/nginx/static_assets.conf
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {