diff options
author | mh <mh@immerda.ch> | 2013-03-17 15:51:55 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2013-03-17 15:51:55 +0100 |
commit | 9c17d2b696e026eeca9d4c4b862f839479bbae64 (patch) | |
tree | cc30877c084d8087262236ad7186603bc62afe57 /templates/vhosts/php_joomla/partial.erb | |
parent | 00952a0b9a210c8df93e1b03f0f508c6087a16f9 (diff) |
deny directories that shouldn't be web accessible
Diffstat (limited to 'templates/vhosts/php_joomla/partial.erb')
-rw-r--r-- | templates/vhosts/php_joomla/partial.erb | 13 |
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> + |