From 32739d1630a3622965121b8e60314232947308eb Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 12 Sep 2014 11:46:37 +0200 Subject: fix log paths --- bin/ldap2apache | 8 +++----- 1 file 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 << " " 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 << " " config << " UserDir disabled" config << " " - 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]" -- cgit v1.2.3