From 5ce38cacc4d1e7a6aa3ccb59fc3ac52862051c11 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Wed, 23 Feb 2011 12:21:54 +0000 Subject: - use a loop for all the directory that should be forbidden --- modules/phpbb/templates/forums_vhost.conf | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'modules/phpbb') 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 - /.*/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 +-%> + /.*/phpBB/<%= f %>/ > + Order Allow,Deny Deny from all + +<%- end -%> -- cgit v1.2.1