diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ldap2apache | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ldap2apache b/bin/ldap2apache index c1627c9..e976fae 100755 --- a/bin/ldap2apache +++ b/bin/ldap2apache @@ -235,7 +235,8 @@ clients.each{ |c| config << ' Alias /awstats-css/ "/usr/share/awstats/css/"' config << ' Alias /awstats-icon/ "/usr/share/awstats/icon/"' config << " ScriptAlias /cgi-stats/awstats.pl /usr/lib/cgi-bin/awstats.pl" - config << " Redirect permanent / http://stats.#{server_name}/cgi-stats/awstats.pl" + config << " RewriteEngine on" + config << " RewriteRule ^/$ /cgi-stats/awstats.pl [L,R]" config << "</VirtualHost>" config << '# vim:ft=apache:' |