summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-03-17 15:51:55 +0100
committermh <mh@immerda.ch>2013-03-17 15:51:55 +0100
commit9c17d2b696e026eeca9d4c4b862f839479bbae64 (patch)
treecc30877c084d8087262236ad7186603bc62afe57 /templates
parent00952a0b9a210c8df93e1b03f0f508c6087a16f9 (diff)
deny directories that shouldn't be web accessible
Diffstat (limited to 'templates')
-rw-r--r--templates/vhosts/php_joomla/partial.erb13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/vhosts/php_joomla/partial.erb b/templates/vhosts/php_joomla/partial.erb
index 526352a..3046129 100644
--- a/templates/vhosts/php_joomla/partial.erb
+++ b/templates/vhosts/php_joomla/partial.erb
@@ -17,3 +17,16 @@
RewriteCond %{REQUEST_URI} (.*/administrator/.*)
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R]
</Directory>
+
+ # Deny various directories that
+ # shouldn't be webaccessible
+ <Directory "<%= documentroot %>/tmp/">
+ Deny From All
+ </Directory>
+ <Directory "<%= documentroot %>/logs/">
+ Deny From All
+ </Directory>
+ <Directory "<%= documentroot %>/cli/">
+ Deny From All
+ </Directory>
+