Thank you so much, Vikram! I really appreciate your quick response. Fer-
----- Original Message ----- From: "Vikramjit Singh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 28, 2002 1:02 AM Subject: Re: Tomcat SSL > > -----Original Message----- > > From: Fernando Barsoba (pradaUSA) [mailto:fbarsoba@;PRADAUSA.COM] > > Sent: Sunday, October 27, 2002 9:50 PM > > To: [EMAIL PROTECTED] > > Subject: Tomcat SSL > > > > > > I was able to set up SSL with Tomcat successfully. Now, the > > problem is that the whole web site is now SSL enabled. What if > > I only want certain Context to be SSL enabled. Is that possible > > with Tomcat? > > In your web.xml you can specify which URLs require SSL as follows: > > <!-- URLs of the form http://host/webAppPrefix/ssl/blah require SSL and are > thus redirected to > https://host/webAppPrefix/ssl/blah. --> > <security-constraint> > <web-resource-collection> > <web-resource-name>Purchase</web-resource-name> > <url-pattern>/ssl/*</url-pattern> > </web-resource-collection> > <auth-constraint> > <role-name>registered-user</role-name> > </auth-constraint> > <user-data-constraint> > <transport-guarantee>CONFIDENTIAL</transport-guarantee> > </user-data-constraint> > </security-constraint> > > The role-name is defined in $CATALINA_HOME/conf/tomcat-users.xml file. > Hope that helps. > > > > > Thank you, > > > > Fer- > Vikram. > > > > ============================================================== > > ============To unsubscribe: mailto [EMAIL PROTECTED] with > > body: "signoff JSP-INTEREST". > > For digest: mailto [EMAIL PROTECTED] with body: "set > > JSP-INTEREST DIGEST". > > Some relevant FAQs on JSP/Servlets can be found at: > > > > http://archives.java.sun.com/jsp-interest.html > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.jsp > > http://www.jguru.com/faq/index.jsp > > http://www.jspinsider.com > > > Disclaimer: This e-mail message along with any attachments is intended only > for the addressee and may contain confidential and privileged information of > GTL Limited. If the reader of this message is not the intended recipient, > you are notified that any dissemination, distribution or copy of this > communication is strictly prohibited. If you have received this message by > error, please notify us immediately, return the original mail to the sender > and delete the message from your system. > > =========================================================================== > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > > =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com