aboutsummaryrefslogtreecommitdiffstats
path: root/modules/phpbb
diff options
context:
space:
mode:
Diffstat (limited to 'modules/phpbb')
-rw-r--r--modules/phpbb/templates/forums_vhost.conf23
1 files changed, 22 insertions, 1 deletions
diff --git a/modules/phpbb/templates/forums_vhost.conf b/modules/phpbb/templates/forums_vhost.conf
index 995f1f70..e4060ce0 100644
--- a/modules/phpbb/templates/forums_vhost.conf
+++ b/modules/phpbb/templates/forums_vhost.conf
@@ -11,6 +11,27 @@
Allow from all
</Directory>
- <Directory ~ "<%= forums_dir %>/.*/phpBB/install/">
+<%-
+forbidden = ['install',
+ 'cache',
+ 'includes',
+ 'phpbb_seo/includes',
+ 'store',
+ 'images/avatars/upload',
+ 'files',
+ 'umil/error_files',
+ 'gym_sitemaps/acp',
+ 'gym_sitemaps/sources',
+ 'gym_sitemaps/cache',
+ 'gym_sitemaps/includes',
+ 'gym_sitemaps/display',
+ 'gym_sitemaps/modules',
+]
+for f in forbidden
+-%>
+ <Directory <%= forums_dir %>/.*/phpBB/<%= f %>/ >
+ Order Allow,Deny
Deny from all
</Directory>
+
+<%- end -%>