X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=doc%2FServer-configuration.html;h=3aa897225da720fc3d887b7b2b854d3c0a1d52ee;hb=d01c234235411bafb97661d335fcb6ea1e67ffbc;hp=de6bf488cec95b7289bbb1c6ef6437e6a9d8c463;hpb=27cf2e671d1f35bd8c9383d008cd3733fc1c6e0d;p=github%2Fshaarli%2FShaarli.git diff --git a/doc/Server-configuration.html b/doc/Server-configuration.html index de6bf488..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)$ {