Skip to content
Snippets Groups Projects
Commit 45042f9c authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Put apache rewrite in puppet manifest

parent ac756589
No related branches found
No related tags found
1 merge request!2Merge till Production
...@@ -98,6 +98,27 @@ class skadereg { ...@@ -98,6 +98,27 @@ class skadereg {
docroot => '/var/www/skadereg/public', docroot => '/var/www/skadereg/public',
proxy_preserve_host => true, proxy_preserve_host => true,
allow_encoded_slashes => 'on', 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/': 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