mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-22 03:38:01 +00:00
WiP gitlist uses apache 2.2 style .htaccess which is incompatible with stretch's apache 2.4
This commit is contained in:
@@ -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')
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user