diff options
author | Peter Palfrader <peter@palfrader.org> | 2006-10-18 14:55:07 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2006-10-18 14:55:07 +0000 |
commit | e27eec32776acca0da598f2e2c2deff731e3b1ae (patch) | |
tree | c745e79505d2ac3bc3df7fbcd34e8372348adb83 /bin | |
parent | d3b9a461ad23e79ef7233aef0c521124832b9de5 (diff) |
Change redirect for rewrite
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@220 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
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:' |