Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Re-directing SSL Connections

Status
Not open for further replies.
Nov 26, 2001
30
US
Hey Everyone,

I'm a tomcat newbie, so please bear with me. I have tomcat configured to serve content, and everything works great. Im running it in-line with an ssl accelerator. I can get it to serve secure pages when i type " but I want it to default to that, and I cant seem to figure it out.

Any held is greatly appreciated.

Wade
 
I would accomplish this by using mod_jk and apache in front. Then its a fairly simple exercise to use an extra apache vhost to handle this.

Alternatively you could check and see if your ssl accelerator is setting an environment variable or request header indicating the security settings. if so you can key off that and issue a redirect. This is quite common but still specific to your accelerator.

 
Can't you just set the SSL Connector to port 80 or 8080(instead of 443/8443 defaults) in server.xml ?

Eg :

<Connector port="80"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" debug="0" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />

--------------------------------------------------
Free Database Connection Pooling Software
 
That might trigger an error in IE since you'll be running https over http.

It also most likely wouldn't trigger the IE 'lock'icon which users expect to see if they are using an SSL connection.

 
ignore my ramblings ... of course it wouldn't work as the browser is expecting different protocols, so you end up with gobbledegook on the page !

--------------------------------------------------
Free Database Connection Pooling Software
 
If you are using Struts, then you can use SSL Extension that can enforce selective servlets using SSL. It will auto redirect individual page to configured scheme. Alternatively, you can implement a servlet filter to do that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top