diff options
author | Peter Palfrader <peter@palfrader.org> | 2008-11-22 22:42:08 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2008-11-22 22:42:08 +0000 |
commit | 026956006531d8f8acf992e02b4190270582edaa (patch) | |
tree | c29199a7e23b28feb09880cf8a35566ababa8a3c | |
parent | e2eb34a15cf4f7a1d7b1971e152e13f10d9b5cba (diff) |
Redirect to non-standard https port properly
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@373 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-x | bin/ldap2apache | 2 |
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:' |