diff options
author | Peter Palfrader <peter@palfrader.org> | 2006-10-18 17:11:51 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2006-10-18 17:11:51 +0000 |
commit | b29173600baf6dfaa1bf914ce6b3302b94ffdc0b (patch) | |
tree | 7707cda425b623298b9225d075e5d059368485ec /bin | |
parent | 1e8f80626d75e9d767600fba000af1da8a185953 (diff) |
Allow auth for webstats
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@226 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ldap2apache | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/ldap2apache b/bin/ldap2apache index 5f961b5..7da9b1f 100755 --- a/bin/ldap2apache +++ b/bin/ldap2apache @@ -27,6 +27,7 @@ clients = ldap.conn.search2(@config['basedn'], LDAP::LDAP_SCOPE_SUBTREE, 'object @configtest = @config['module']['apache']['configtest'] @reload = @config['module']['apache']['reload'] @statsbind = @config['module']['apache']['statsbind'] +@statsvhostaddto = @config['module']['apache']['statsvhostaddto'] files = {} @@ -243,6 +244,8 @@ clients.each{ |c| config << ' Alias /awstats-icon/ "/usr/share/awstats/icon/"' config << " ScriptAlias /awstats.pl /usr/lib/cgi-bin/awstats.pl" config << " ScriptAlias / /usr/lib/cgi-bin/awstats.pl" + config << "" + config << " #{@statsvhostaddto}" if @statsvhostaddto config << "</VirtualHost>" config << '# vim:ft=apache:' |