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:26:48 +0000 |
| commit | 029ea37503b3546b65e1e69163129ebd4847a0eb (patch) | |
| tree | 21f048062c1961ecd6fe7f04d1b6b33eb1e9d8bd | |
| parent | b02b0d639e4921278e99fb314cc79e98362b1880 (diff) | |
Don't allow script execution from the cache directory
| -rw-r--r-- | config/httpd.conf | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/httpd.conf b/config/httpd.conf index acf37d97c..3a1056844 100644 --- a/config/httpd.conf +++ b/config/httpd.conf @@ -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 |
