Tomcat URL redirection

Discuss the Scalix web client

Moderators: ScalixSupport, admin

Stephen
Posts: 17
Joined: Wed Feb 23, 2005 11:48 am
Location: Dallas Texas
Contact:

Tomcat URL redirection

Postby Stephen » Mon Feb 28, 2005 3:31 pm

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
Stephen Eaton, EMCom
stephen@getemcom.com
www.getemcom.com
Certified Scalix Professional
Certified Scalix Instructor

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue Mar 01, 2005 7:07 am

Can you explain a little more as to what the issue is ? Do you have Tomcat listening on port 80 ?

Cheers

Dave

Stephen
Posts: 17
Joined: Wed Feb 23, 2005 11:48 am
Location: Dallas Texas
Contact:

URL redirect

Postby Stephen » Tue Mar 01, 2005 9:01 am

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

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue Mar 01, 2005 9:13 am

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.

Stephen
Posts: 17
Joined: Wed Feb 23, 2005 11:48 am
Location: Dallas Texas
Contact:

Tomcat change

Postby Stephen » Tue Mar 01, 2005 9:45 am

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

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue Mar 01, 2005 9:57 am

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

Stephen
Posts: 17
Joined: Wed Feb 23, 2005 11:48 am
Location: Dallas Texas
Contact:

options

Postby Stephen » Tue Mar 01, 2005 10:47 am

Thanks Dave. I'd read this trhread during my initial research. I was hoping it wouldn't come to that.

Cheers,

Stephen

tmk
Posts: 24
Joined: Wed Nov 09, 2005 10:32 pm

Re: Tomcat URL redirection

Postby tmk » Tue Nov 15, 2005 7:09 pm

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>


Return to “Scalix Web Access”



Who is online

Users browsing this forum: No registered users and 3 guests