diff options
author | Andreas <andreas@immerda.ch> | 2010-01-27 21:59:52 +0100 |
---|---|---|
committer | Andreas <andreas@immerda.ch> | 2010-01-27 21:59:52 +0100 |
commit | 60bb08e7cc39c9e7cd0d07e8b10db62ca9f8e8be (patch) | |
tree | 1d66523f08dd44fac1907a5c2592e8af48068447 /templates/vhosts/php_silverstripe | |
parent | 8c640c2ffd919e33cb08a9135e32aa2d25b3db55 (diff) |
silverstripe .htaccess
Diffstat (limited to 'templates/vhosts/php_silverstripe')
-rw-r--r-- | templates/vhosts/php_silverstripe/CentOS.erb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/vhosts/php_silverstripe/CentOS.erb b/templates/vhosts/php_silverstripe/CentOS.erb index 6967728..df9df82 100644 --- a/templates/vhosts/php_silverstripe/CentOS.erb +++ b/templates/vhosts/php_silverstripe/CentOS.erb @@ -51,6 +51,23 @@ </Directory> <%- end -%> + <Files *.ss> + Order deny,allow + Deny from all + #Allow from 127.0.0.1 + </Files> + + <IfModule mod_rewrite.c> + RewriteEngine On + RewriteBase / + + RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$) + + RewriteCond %{REQUEST_URI} ^(.*)$ + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L] + </IfModule> + <IfModule mod_security2.c> <%- if mod_security.to_s == 'true' then -%> SecRuleEngine On @@ -123,6 +140,12 @@ php_admin_value allow_url_fopen On </Directory> + <Files *.ss> + Order deny,allow + Deny from all + #Allow from 127.0.0.1 + </Files> + <IfModule mod_security2.c> <%- if mod_security.to_s == 'true' then -%> SecRuleEngine On |