diff --git a/docs/de/user/installation.rst b/docs/de/user/installation.rst index 35a30f524..131aa1f87 100644 --- a/docs/de/user/installation.rst +++ b/docs/de/user/installation.rst @@ -187,6 +187,12 @@ Angenommen du willst wallabag in das Verzeichnis ``/var/www/wallabag`` installie 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; } diff --git a/docs/en/user/installation.rst b/docs/en/user/installation.rst index 45e146164..77ef60a82 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; } diff --git a/docs/fr/user/installation.rst b/docs/fr/user/installation.rst index 4f94d6c87..f6afcda62 100644 --- a/docs/fr/user/installation.rst +++ b/docs/fr/user/installation.rst @@ -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; }