redirect port

This is a multi-part message in MIME format.

------=_NextPart_000_0492_01C8E7F9.357CE670
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

I have been using Apache/2.2.3 and Tomcat 5.5 as standalone servers. I'm =

adding ssl with mod_jk and mod_proxy_ajp to access tomcat via ssl.

I access my static content and cgi via http://www.mydomain.com/ and use
mod_rewrite in .htaccess to redirect to https. This works fine as =
desired.

I can access my webapp via http://www.mydomain.com:8080/MyWebApp, and =
this
is the url users have book marked. This continues to work. I can also =
access
https://www.mydomain.com/MyWebApp.

What I'd like to do is force a redirect from
http://www.mydomain.com:8080/MyWebApp to =
https://www.mydomain.com/MyWebApp

Note; tomcat is not under the apache webroot

Any assistance appreciated.

Thanks

Tim

------=_NextPart_000_0492_01C8E7F9.357CE670
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<META content=3D"MSHTML 6.00.2900.3354" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>I have been using Apache/2.2.3 and Tomcat 5.5 as standalone =
servers. I'm
<BR>adding ssl with mod_jk and mod_proxy_ajp to access tomcat via =
ssl.<BR><BR>I
access my static content and cgi via <A =
href=3D"">http://www.mydomain.com/</A> and
use <BR>mod_rewrite in .htaccess to redirect to https. This works fine =
as
desired.<BR><BR>I can access my webapp via <A
href=3D"">http://www.mydomain.com:8080/MyWebApp</A>, and this <BR>is the =
url users
have book marked. This continues to work. I can also access <BR><A
href=3D"">https://www.mydomain.com/MyWebApp</A>.<BR><BR>What I'd like to =
do is
force a redirect from <BR><A =
href=3D"">http://www.mydomain.com:8080/MyWebApp</A>
to <A href=3D"">https://www.mydomain.com/MyWebApp</A><BR><BR>Note; =
tomcat is not
under the apache webroot<BR><BR>Any assistance
appreciated.<BR><BR>Thanks<BR><BR>Tim<BR></DIV></BODY></HTML>

------=_NextPart_000_0492_01C8E7F9.357CE670--

____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users [at] modssl.org
Automated List Manager majordomo [at] modssl.org
Tim Hester [ Do, 17 Juli 2008 17:38 ] [ ID #1961102 ]

Re: redirect port

A few more hours of investigation revealed the solution;

RewriteCond %{HTTP_HOST} ^www.mydomain.com:8080 [NC]
RewriteRule ^/(.*) https://www.mydomain.com/$1 [L,R=301]

Sorry bout the html mail earlier.

Tim

----- Original Message -----
From: Tim Hester
To: modssl-users [at] modssl.org
Sent: Thursday, July 17, 2008 10:38 AM
Subject: redirect port


I have been using Apache/2.2.3 and Tomcat 5.5 as standalone servers. I'm
adding ssl with mod_jk and mod_proxy_ajp to access tomcat via ssl.

I access my static content and cgi via http://www.mydomain.com/ and use
mod_rewrite in .htaccess to redirect to https. This works fine as desired.

I can access my webapp via http://www.mydomain.com:8080/MyWebApp, and this
is the url users have book marked. This continues to work. I can also access
https://www.mydomain.com/MyWebApp.

What I'd like to do is force a redirect from
http://www.mydomain.com:8080/MyWebApp to https://www.mydomain.com/MyWebApp

Note; tomcat is not under the apache webroot

Any assistance appreciated.

Thanks

Tim

____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users [at] modssl.org
Automated List Manager majordomo [at] modssl.org
Tim Hester [ Do, 17 Juli 2008 23:03 ] [ ID #1961103 ]
Webserver » gmane.comp.apache.mod-ssl.user » redirect port

Vorheriges Thema: overlapping memcpy
Nächstes Thema: SSL proxy