]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - docs/fr/user/installation.rst
fix #2582 - Nginx config: disable all other PHP file from symphony
[github/wallabag/wallabag.git] / docs / fr / user / installation.rst
index 4f94d6c87ac3741c324957a7f6dc5bc25f8615d9..f6afcda62884522c3f143a7a93750d1551ac6813 100644 (file)
@@ -183,6 +183,12 @@ En imaginant que vous vouliez installer wallabag dans le dossier ``/var/www/wall
             internal;
         }
 
+        # return 404 for all other php files not matching the front controller
+        # this prevents access to other php files you don't want to be accessible.
+        location ~ \.php$ {
+            return 404;
+        }
+
         error_log /var/log/nginx/wallabag_error.log;
         access_log /var/log/nginx/wallabag_access.log;
     }