Page 1 of 1

Tomcat URL redirection

Posted: Mon Feb 28, 2005 3:31 pm
by Stephen
We're using SWA with Tomcat. When a user navigates to http://server.mysite.com/webmail we'd like to redirect them to https://server.mysite.com/webmail. This is simple with apache. My initial research indicates that the Tomcat approach is to write some java code to do this. Is there an easier way? Or has someone already blased this trail and willing to post the code?

Cheers,

Stephen

Posted: Tue Mar 01, 2005 7:07 am
by ScalixSupport
Can you explain a little more as to what the issue is ? Do you have Tomcat listening on port 80 ?

Cheers

Dave

URL redirect

Posted: Tue Mar 01, 2005 9:01 am
by Stephen
Hi Dave,

Yes, Tomcat is running on port 80. The site has an external domain set up that they used for accessing Outlook web access. www.mysite2.com. This would go directly to the OWA login page. We changed this to go to the SWA log in page. Now we would like to secure it with SSL. Our goal is to have the users continue to use the same URL. It works fine for regular http. Our next step is when the user accesses www.mysite2.com it gets redirected from http to https on port 8443:

Thanks,

Stephen

Posted: Tue Mar 01, 2005 9:13 am
by ScalixSupport
The problem with running tomcat on port 80 is that you will not be able to make the Scalix Rules Wizard available.

Take a look at the config I suggest in the post http://www.scalix.com/community/viewtopic.php?t=159

and see if you can make any use of that.

Cheers

Dave.

Tomcat change

Posted: Tue Mar 01, 2005 9:45 am
by Stephen
I had looked at this posting before. The site is running RH 3 so we cannot use the mod_jk2. They're OK living without the Rules Wizard in the web client since they have it in Outlook. The worst case is we instruct them to navigate to the secure URL. Any other ideas?

Cheers,

Stephen

Posted: Tue Mar 01, 2005 9:57 am
by ScalixSupport
Read through these posts and see if they are what you are looking for:

http://www.jguru.com/faq/view.jsp?EID=748030

Cheers

Dave

options

Posted: Tue Mar 01, 2005 10:47 am
by Stephen
Thanks Dave. I'd read this trhread during my initial research. I was hoping it wouldn't come to that.

Cheers,

Stephen

Re: Tomcat URL redirection

Posted: Tue Nov 15, 2005 7:09 pm
by tmk
Stephen wrote:We're using SWA with Tomcat. When a user navigates to http://server.mysite.com/webmail we'd like to redirect them to https://server.mysite.com/webmail. This is simple with apache. My initial research indicates that the Tomcat approach is to write some java code to do this. Is there an easier way? Or has someone already blased this trail and willing to post the code?

Cheers,

Stephen


Wouldn't making Tomcat listen on port 443 do the trick? All you would then have to do is create a redirect index page at http://server.mysite.com/webmail pointing to https://server.mysite.com/webmail:

Code: Select all

<html>

<head>

<title>Redirecting to Scalix Web Access</title>

<meta http-equiv=refresh content="0; url=https://server.mysite.com/webmail/">

</head>

</body>

</html>