From 1fd773dda89c321d5558bcfefcc75742375d9541 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Sat, 12 Nov 2011 19:17:31 +0000 Subject: Upgrade to HTTPD 2.3.15-beta. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1201308 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/modules/http/httpd-ssl-conf | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'sca-cpp/trunk/modules/http/httpd-ssl-conf') diff --git a/sca-cpp/trunk/modules/http/httpd-ssl-conf b/sca-cpp/trunk/modules/http/httpd-ssl-conf index 9567c44cf1..50da9e6b54 100755 --- a/sca-cpp/trunk/modules/http/httpd-ssl-conf +++ b/sca-cpp/trunk/modules/http/httpd-ssl-conf @@ -31,6 +31,11 @@ pport=`$here/httpd-addr pport $gport` sslpport=`$here/httpd-addr pport $2` sslport=`$here/httpd-addr listen $2` sslvhost=`$here/httpd-addr vhost $2` +if [ "$sslpport" = "443" ]; then + sslpportsuffix="" +else + sslpportsuffix=":$sslpport" +fi htdocs=`echo $conf | awk '{ print $8 }'` mkdir -p $htdocs @@ -58,7 +63,13 @@ Listen $sslport # HTTPS virtual host -ServerName https://$host:$sslpport +ServerName https://$host$sslpportsuffix + + +RewriteEngine on +RewriteCond %{HTTP_HOST} !^$host [NC] +RewriteRule .* https://$host$sslpportsuffix%{REQUEST_URI} [R] + Include conf/svhost-ssl.conf @@ -86,7 +97,7 @@ cat >>$root/conf/svhost.conf < EOF @@ -98,7 +109,7 @@ cat >>$root/conf/dvhost.conf < EOF -- cgit v1.2.3