Skip to content
Snippets Groups Projects
Commit 36787d39 authored by Andreas Alvarsson's avatar Andreas Alvarsson
Browse files

Merge branch 'apache-rewrite' into 'production'

Put apache rewrite in puppet manifest

See merge request !1
parents ac756589 45042f9c
No related branches found
No related tags found
1 merge request!2Merge till Production
......@@ -98,6 +98,27 @@ class skadereg {
docroot => '/var/www/skadereg/public',
proxy_preserve_host => true,
allow_encoded_slashes => 'on',
rewrites => [
{
'rewrite_cond' => [
'%{REQUEST_FILENAME} !-d',
],
'rewrite_rule' => [ '^(.*)/$ /$1 [L,R=301]' ]
},
{
'rewrite_cond' => [
'%{HTTP:Authorization} ^(.*)'
],
'rewrite_rule' => [ '.* - [e=HTTP_AUTHORIZATION:%1]' ],
},
{
'rewrite_cond' => [
'%{REQUEST_FILENAME} !-d',
'%{REQUEST_FILENAME} !-f',
],
'rewrite_rule' => [ '^ index.php [L]' ],
},
],
}
file { '/var/www/skadereg/':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment