X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=docs%2Fen%2Fuser%2Finstallation.rst;h=77ef60a82f9f8385f87a27c1383efd77a5217804;hb=ccad5d7629acec38bcc36a8ea6e6cfe8ef4f1f02;hp=45e146164c4f1381e87ed6840d30a87d5d0f0134;hpb=d3511bbde9743995e7ee7eec74b20b9b7b1b56ca;p=github%2Fwallabag%2Fwallabag.git diff --git a/docs/en/user/installation.rst b/docs/en/user/installation.rst index 45e14616..77ef60a8 100644 --- a/docs/en/user/installation.rst +++ b/docs/en/user/installation.rst @@ -186,6 +186,12 @@ Assuming you installed wallabag in the ``/var/www/wallabag`` folder, here's the 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; }