summaryrefslogtreecommitdiff
path: root/bin/ldap2apache
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ldap2apache')
-rwxr-xr-xbin/ldap2apache8
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/ldap2apache b/bin/ldap2apache
index 90ae84d..cfef1c7 100755
--- a/bin/ldap2apache
+++ b/bin/ldap2apache
@@ -230,11 +230,9 @@ clients.each{ |c|
config << " </IfModule>"
end
config << " SuexecUserGroup #{vhostuidname} #{vhostgidname}" unless property['setusergroup'] == "no"
- #config << " ErrorLog #{client_home}/logs/#{server_name}-error.log"
- #config << " CustomLog #{client_home}/logs/#{server_name}-access.log combined"
+ config << " LogLevel warn"
config << " ErrorLog /var/log/apache2/#{server_name}-error.log"
config << " CustomLog /var/log/apache2/#{server_name}-access.log privacy"
- config << " LogLevel warn"
config << " ServerSignature On"
config << ""
config << ""
@@ -374,9 +372,9 @@ clients.each{ |c|
config << " <IfModule mod_userdir.c>"
config << " UserDir disabled"
config << " </IfModule>"
- config << " ErrorLog #{client_home}/logs/#{server_name}-error.log"
config << " LogLevel warn"
- config << " CustomLog #{client_home}/logs/#{server_name}-access.log combined"
+ config << " ErrorLog /var/log/apache2/#{server_name}-error.log"
+ config << " CustomLog /var/log/apache2/#{server_name}-access.log privacy"
config << " ServerSignature On"
config << " RewriteEngine on"
config << " RewriteRule ^/(.*)$ https://#{server_name}"+(bindhttpsport == 443 ? '' : ":#{bindhttpsport}")+"/$1 [L,R]"