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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Force resources to be served only via SSL?

Status
Not open for further replies.

dforbu

Programmer
Dec 7, 2004
4
US
I have some servlets that I want to ensure only get served via SSL. Right now

and

both work. I need to block the non-SSL URL, or redirect it to the SSL URL, how can I make this happen? I have a lot of servlets like this accessible thru several virtual hosts, so if I have to add a line to httpd.conf for each servlet for each VH, I wouldn't mind forcing ALL servlets to run over SSL if it's quick and easy. Either way, whatever it takes. Apache uses JK2 to hand off the request to Tomcat, running on Linux (Fedora Core 3).
 
I'd take a different tack. Make the servlets/login a virtualhost and make the host only listen on the SSL port. Or run SSL on port 80 for that virthost.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top