X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=doc%2FServer-configuration.html;h=3aa897225da720fc3d887b7b2b854d3c0a1d52ee;hb=fd50e14cbae78b36112560eab1af11fe095611de;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; }
  • Home
  • Installation
  • Troubleshooting
  • Development @@ -278,10 +280,15 @@ location ~ ~$ { }
    # /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)$ {