From 026956006531d8f8acf992e02b4190270582edaa Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 22 Nov 2008 22:42:08 +0000 Subject: Redirect to non-standard https port properly git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@373 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- bin/ldap2apache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 << "" config << '# vim:ft=apache:' -- cgit v1.2.3