aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-02-23 12:21:54 +0000
committerMichael Scherer <misc@mageia.org>2011-02-23 12:21:54 +0000
commit5ce38cacc4d1e7a6aa3ccb59fc3ac52862051c11 (patch)
tree1bf93a741bd833ac7acc4f1a586119a373ba2997
parent0693214380bdb539ce2746be0ec244d9adeeabc9 (diff)
downloadpuppet-5ce38cacc4d1e7a6aa3ccb59fc3ac52862051c11.tar
puppet-5ce38cacc4d1e7a6aa3ccb59fc3ac52862051c11.tar.gz
puppet-5ce38cacc4d1e7a6aa3ccb59fc3ac52862051c11.tar.bz2
puppet-5ce38cacc4d1e7a6aa3ccb59fc3ac52862051c11.tar.xz
puppet-5ce38cacc4d1e7a6aa3ccb59fc3ac52862051c11.zip
- use a loop for all the directory that should be forbidden
-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 -%>