diff options
-rw-r--r-- | docs/de/user/installation.rst | 6 | ||||
-rw-r--r-- | docs/en/user/installation.rst | 6 | ||||
-rw-r--r-- | docs/fr/user/installation.rst | 6 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/config/services.yml | 15 |
4 files changed, 18 insertions, 15 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 | } |
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 | |||
186 | internal; | 186 | internal; |
187 | } | 187 | } |
188 | 188 | ||
189 | # return 404 for all other php files not matching the front controller | ||
190 | # this prevents access to other php files you don't want to be accessible. | ||
191 | location ~ \.php$ { | ||
192 | return 404; | ||
193 | } | ||
194 | |||
189 | error_log /var/log/nginx/wallabag_error.log; | 195 | error_log /var/log/nginx/wallabag_error.log; |
190 | access_log /var/log/nginx/wallabag_access.log; | 196 | access_log /var/log/nginx/wallabag_access.log; |
191 | } | 197 | } |
diff --git a/docs/fr/user/installation.rst b/docs/fr/user/installation.rst index 4f94d6c8..f6afcda6 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 | |||
183 | internal; | 183 | internal; |
184 | } | 184 | } |
185 | 185 | ||
186 | # return 404 for all other php files not matching the front controller | ||
187 | # this prevents access to other php files you don't want to be accessible. | ||
188 | location ~ \.php$ { | ||
189 | return 404; | ||
190 | } | ||
191 | |||
186 | error_log /var/log/nginx/wallabag_error.log; | 192 | error_log /var/log/nginx/wallabag_error.log; |
187 | access_log /var/log/nginx/wallabag_access.log; | 193 | access_log /var/log/nginx/wallabag_access.log; |
188 | } | 194 | } |
diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml index 90a2419e..ed66d2be 100644 --- a/src/Wallabag/CoreBundle/Resources/config/services.yml +++ b/src/Wallabag/CoreBundle/Resources/config/services.yml | |||
@@ -41,21 +41,6 @@ services: | |||
41 | arguments: | 41 | arguments: |
42 | - | 42 | - |
43 | error_message: '%wallabag_core.fetching_error_message%' | 43 | error_message: '%wallabag_core.fetching_error_message%' |
44 | http_client: | ||
45 | user_agents: | ||
46 | 'lifehacker.com': 'PHP/5.2' | ||
47 | 'gawker.com': 'PHP/5.2' | ||
48 | 'deadspin.com': 'PHP/5.2' | ||
49 | 'kotaku.com': 'PHP/5.2' | ||
50 | 'jezebel.com': 'PHP/5.2' | ||
51 | 'io9.com': 'PHP/5.2' | ||
52 | 'jalopnik.com': 'PHP/5.2' | ||
53 | 'gizmodo.com': 'PHP/5.2' | ||
54 | '.wikipedia.org': 'Mozilla/5.2' | ||
55 | '.fok.nl': 'Googlebot/2.1' | ||
56 | 'getpocket.com': 'PHP/5.2' | ||
57 | 'iansommerville.com': 'PHP/5.2' | ||
58 | '.slashdot.org': 'PHP/5.2' | ||
59 | calls: | 44 | calls: |
60 | - [ setLogger, [ "@logger" ] ] | 45 | - [ setLogger, [ "@logger" ] ] |
61 | tags: | 46 | tags: |