summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2014-09-12 11:46:37 +0200
committerPeter Palfrader <peter@palfrader.org>2014-09-12 11:46:37 +0200
commit32739d1630a3622965121b8e60314232947308eb (patch)
treefd3404180d4767db56370e294a5f0335ea8f662b /bin
parent6ca6e91de954687fd1142244a4a5543bc859e797 (diff)
fix log pathsHEADmaster
Diffstat (limited to 'bin')
-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]"