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

Enable SSL for specific context in Tomcat

Status
Not open for further replies.

vidz

Programmer
Jul 25, 2006
10
US
Hi,

I have Configured SSL in Tomcat 5.0.
I've changed web.xml to use SSL on the page /secure/ccinfo.jsp.
However, the links after this page are all SSL-enabled
Can I just make /secure/ccinfo.jsp SSL-enabled while others aren't.

This is the code i added in web.xml
<security-constraint>
<web-resource-collection>
<web-resource-name>Purchase</web-resource-name>
<url-pattern>/secure/*</url-pattern>
<http-method>GET</http-method>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>

I read in a site that all subsequent URLs will use the HTTPS protocol unless explicitly overridden by using a URL defining the http: protocol. Is this the way it works?


Thanks in advance,
Vidya
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top