diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-11-21 17:28:21 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-12-22 17:11:41 +0000 |
commit | 573c61ca2b9e3d69e05991aaa761fb9c6122dcab (patch) | |
tree | dbf86b8a650b421d64bcbe15c0c060f5b0ce7316 | |
parent | cf62c3e58595ef2fac2f7ec49304fd827ecbd854 (diff) |
Don't allow script execution from the cache directory
-rw-r--r-- | config/httpd.conf-example | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/httpd.conf-example b/config/httpd.conf-example index 1326252f5..2c3423e2b 100644 --- a/config/httpd.conf-example +++ b/config/httpd.conf-example @@ -43,6 +43,12 @@ RewriteMap escape int:escape RewriteCond %{DOCUMENT_ROOT}/views_cache/request/$2/$1/${escape:$3} -f RewriteRule ^/request/((\d{1,3})\d*)/(response/\d+/attach/(html/)?\d+/.+) /views_cache/request/$2/$1/${escape:$3} [L] +# Don't allow anything to execute from the cache +<Directory "/var/www/alaveteli/public/views_cache"> + Options -ExecCGI + SetHandler default-handler + AllowOverride None +</Directory> <IfModule mod_passenger.c> # Set this to something like 100 if you have memory leak issues |