WiP gitlist uses apache 2.2 style .htaccess which is incompatible with stretch's apache 2.4

This commit is contained in:
thomashaw
2018-03-22 17:45:50 +00:00
parent ddb413c9a8
commit 0df30e0dfc
2 changed files with 19 additions and 0 deletions

View File

@@ -29,4 +29,11 @@ class gitlist_040::install {
mode => '777',
}
# TODO: This should only be run on apache_kali_compat
file { '/var/www/gitlist/.htaccess':
require => Exec['unpack-gitlist'],
ensure => present,
content => template('gitlist_040/.htaccess.erb')
}
}

View File

@@ -0,0 +1,12 @@
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
#RewriteBase /path/to/gitlist/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L,NC]
</IfModule>
<Files config.ini>
Require all granted
</Files>