diff options
author | Peter Palfrader <peter@palfrader.org> | 2014-09-12 11:46:37 +0200 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2014-09-12 11:46:37 +0200 |
commit | 32739d1630a3622965121b8e60314232947308eb (patch) | |
tree | fd3404180d4767db56370e294a5f0335ea8f662b /bin/ldap2apache | |
parent | 6ca6e91de954687fd1142244a4a5543bc859e797 (diff) |
Diffstat (limited to 'bin/ldap2apache')
-rwxr-xr-x | bin/ldap2apache | 8 |
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]" |