diff options
-rw-r--r-- | SecuringCacheDirectories.md | 59 |
1 files changed, 28 insertions, 31 deletions
diff --git a/SecuringCacheDirectories.md b/SecuringCacheDirectories.md index 2ee629f..2432e66 100644 --- a/SecuringCacheDirectories.md +++ b/SecuringCacheDirectories.md @@ -1,32 +1,29 @@ -Securing Cache Directories -========================== - -While nothing critical is stored in cache directories by tt-rss nor do files have easily guessable names, you may consider forbidding external access over HTTP to these directories anyway. This is not required, however. - -You may also consider restricting access to <code>config.php</code>. - -## Using nginx - -```nginx -location /tt-rss/cache { - deny all; -} - -location = /tt-rss/config.php { - deny all; -} -``` - -## Using apache (2.4 syntax) - -```apache -<Directory /var/www/html/tt-rss/cache> - Require all denied -</Directory> - -<Directory /var/www/html/tt-rss> - <Files "config.php"> - Require all denied - </Files> -</Directory> +While nothing critical is stored in cache directories by tt-rss nor do files have easily guessable names, you may consider forbidding external access over HTTP to these directories anyway. This is not required, however.
+
+You may also consider restricting access to <code>config.php</code>, just in case.
+
+## Using nginx
+
+```nginx
+location /tt-rss/cache {
+ deny all;
+}
+
+location = /tt-rss/config.php {
+ deny all;
+}
+```
+
+## Using apache (2.4 syntax)
+
+```apache
+<Directory /var/www/html/tt-rss/cache>
+ Require all denied
+</Directory>
+
+<Directory /var/www/html/tt-rss>
+ <Files "config.php">
+ Require all denied
+ </Files>
+</Directory>
```
\ No newline at end of file |