]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - doc/Server-configuration.md
Doc: sync from Wiki, generate HTML
[github/shaarli/Shaarli.git] / doc / Server-configuration.md
index c9ec4e137861839ae8415d5ec16817ec2440683a..c7b17c5aadb467c24959cb6ef2649f239f622bbb 100644 (file)
@@ -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