0

I'm developing a webapp using Apache Tomcat. Once it's finished, this webapp will be deployed in a server which hosts other webapps. What I'd like to do now, is to set up SSL authentication just for this webapp on which I'm working. In order to do that and not affect the other apps, instead of changing the "server.xml" file in the "conf" directory of Tomcat, I've understood that I have to define the context of my webapp, creating a file called "context.xml" in the META-INF folder of my webapp. The problem is I don't know what I am supposed to write in that .xml file. This guide (http://www.avajava.com/tutorials/lessons/how-do-i-set-up-ssl-on-tomcat.html;jsessionid=74F4B4F842431DB25BCABB847643AC4F) just tells me which changes I have to make in the server.xml file and so I really don't know how to proceed. Can anyone help me, please? Thanks.

EDIT: SOLVED Apache Tomcat: multiple webapps

Community
  • 1
  • 1
user3067088
  • 1,869
  • 4
  • 17
  • 19
  • 1
    possible duplicate of [Apache Tomcat: multiple webapps](http://stackoverflow.com/questions/20514817/apache-tomcat-multiple-webapps) – user207421 Dec 11 '13 at 22:38
  • I don't see why that's a solution. It just says to use `conf/[enginename]/[hostname]/[YourWebappName].xml,` which is just a clumsier version of `META-INF/context.xml,` which you already knew about. – user207421 Dec 11 '13 at 23:49

1 Answers1

0

Tomcat must be set up it with a Connector for HTTPS, in server.xml. Otherwise it won't even be listening to an HTTPS port. You can't accomplish that in context.xml. <Context> cannot contain a <Connector>. There's nothing useful concerning HTTPS that you can put into a context.xml file.

user207421
  • 305,947
  • 44
  • 307
  • 483