From 60bb08e7cc39c9e7cd0d07e8b10db62ca9f8e8be Mon Sep 17 00:00:00 2001 From: Andreas Date: Wed, 27 Jan 2010 21:59:52 +0100 Subject: silverstripe .htaccess --- templates/vhosts/php_silverstripe/CentOS.erb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'templates') 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 @@ <%- end -%> + + Order deny,allow + Deny from all + #Allow from 127.0.0.1 + + + + 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] + + <%- if mod_security.to_s == 'true' then -%> SecRuleEngine On @@ -123,6 +140,12 @@ php_admin_value allow_url_fopen On + + Order deny,allow + Deny from all + #Allow from 127.0.0.1 + + <%- if mod_security.to_s == 'true' then -%> SecRuleEngine On -- cgit v1.2.3