From f8b936e7e75601b5d96525f25d5b52dbabd909b4 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Fri, 4 Sep 2015 21:25:47 +0200 Subject: Doc: sync from Wiki, generate HTML Additions: - Installation/Download: how to get Shaarli - Community software: ShaarliOS app Modifications: - Installation/Server requirements: PHP 5.4 EOL, PHP 7 announcements - Installation/Server configuration: improve Nginx security - Troubleshooting: PHP sessions on `free.fr` Signed-off-by: VirtualTam --- doc/Server-configuration.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'doc/Server-configuration.md') 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 -- cgit v1.2.3