summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/ldap2apache2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ldap2apache b/bin/ldap2apache
index 2282794..ef5a874 100755
--- a/bin/ldap2apache
+++ b/bin/ldap2apache
@@ -340,7 +340,7 @@ clients.each{ |c|
config << " CustomLog #{client_home}/logs/#{server_name}-access.log combined"
config << " ServerSignature On"
config << " RewriteEngine on"
- config << " RewriteRule ^/(.*)$ https://#{server_name}/$1 [L,R]"
+ config << " RewriteRule ^/(.*)$ https://#{server_name}"+(bindhttpsport == 443 ? '' : ":#{bindhttpsport}")+"/$1 [L,R]"
config << "</VirtualHost>"
config << '# vim:ft=apache:'