aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/de
diff options
context:
space:
mode:
authorOlivier DOSSMANN <olivier+git@dossmann.net>2016-11-14 11:58:26 +0100
committerOlivier DOSSMANN <olivier+git@dossmann.net>2016-11-14 11:58:26 +0100
commitccad5d7629acec38bcc36a8ea6e6cfe8ef4f1f02 (patch)
treec31af9885ed36fa7336be535a38e60cc2aff556b /docs/de
parentd3511bbde9743995e7ee7eec74b20b9b7b1b56ca (diff)
downloadwallabag-ccad5d7629acec38bcc36a8ea6e6cfe8ef4f1f02.tar.gz
wallabag-ccad5d7629acec38bcc36a8ea6e6cfe8ef4f1f02.tar.zst
wallabag-ccad5d7629acec38bcc36a8ea6e6cfe8ef4f1f02.zip
fix #2582 - Nginx config: disable all other PHP file from symphony
Regarding https://www.nginx.com/resources/wiki/start/topics/recipes/symfony/ we need to limit access to config.php and make_dev.php files from Nginx. That's why we return 404 error page for these files.
Diffstat (limited to 'docs/de')
-rw-r--r--docs/de/user/installation.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/de/user/installation.rst b/docs/de/user/installation.rst
index 35a30f52..131aa1f8 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
187 internal; 187 internal;
188 } 188 }
189 189
190 # return 404 for all other php files not matching the front controller
191 # this prevents access to other php files you don't want to be accessible.
192 location ~ \.php$ {
193 return 404;
194 }
195
190 error_log /var/log/nginx/wallabag_error.log; 196 error_log /var/log/nginx/wallabag_error.log;
191 access_log /var/log/nginx/wallabag_access.log; 197 access_log /var/log/nginx/wallabag_access.log;
192 } 198 }