diff options
Diffstat (limited to 'templates/vhosts/php_silverstripe/CentOS.erb')
-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 |