Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is it possible, with Tomcat, to allow ONLY secure connections (HTTPS) for a Context or a Directory?

0
Posted

Is it possible, with Tomcat, to allow ONLY secure connections (HTTPS) for a Context or a Directory?

0

Location: http://www.jguru.com/faq/view.jsp?EID=1082914 Created: May 8, 2003 Modified: 2003-05-08 05:38:48.755 Author: Daniele Galluccio (http://www.jguru.com/guru/viewbio.jsp?EID=1040972) For allowing only HTTPS (secure) connections, you need to activate Tomcat’s the SSL support. If you need help on this, just refer to the Tomcat SSL Configuration HOW-TO documentation pages. Then, you need to add Entire Application /* CONFIDENTIAL to your web application descriptor (web.xml) and change the url-pattern to match the directory you want to access only via HTTPS. Please, keep in mind that since the web application descriptor is an XML file, attributes definition order is important. All attributes are optional but defining them in the wrong

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123