summaryrefslogtreecommitdiff
path: root/bin/ldap2apache
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ldap2apache')
-rwxr-xr-xbin/ldap2apache3
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:'