diff options
Diffstat (limited to 'bin/ldap2apache')
-rwxr-xr-x | bin/ldap2apache | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/ldap2apache b/bin/ldap2apache index 85f747f..2282794 100755 --- a/bin/ldap2apache +++ b/bin/ldap2apache @@ -96,7 +96,10 @@ clients.each{ |c| docdiraddto = vhost['tnWebVHostDocDirAddto'][0].gsub("\n", "\n\t") if vhost['tnWebVHostDocDirAddto'] cgidiraddto = vhost['tnWebVHostCgiDirAddto'][0].gsub("\n", "\n\t") if vhost['tnWebVHostCgiDirAddto'] - ssl = true if property['https'] == "only" + if property['https'] == "only" + ssl = true + http_ssl_upgrade = true unless property['http_ssl_upgrade'] == "no" + end vhostuid = uid vhostgid = gid if property['vhostUser'] @@ -323,7 +326,7 @@ clients.each{ |c| throw "Clash on #{server_name} of client#{c['o'][0]}" if files[ c['o'][0] +"-"+ server_name ] files[ c['o'][0] +"-"+ server_name ] = config - if ssl + if ssl and http_ssl_upgrade config = [] config << "<VirtualHost #{bind}:#{bindhttpport}>" config << " ServerName #{server_name}" |