How to protect a directory with Private JVM? Print

  • 0

IMPORTANT NOTE: Please do not modify system files without a backup copy of them.

In order to use protected directory with Private JVM enabled, you should edit the files below:

1) your application web.xml

2) tomcat-users.xml, which is located in your Private JVM configuration directory.

Your application web.xml should contains:

<web-resource-name>Wildcard means whole app requires authentication</web-resource-name>

Your tomcat-users.xml should contains:

<role rolename="tomcat"/>
<user username="your_username" password="your_password" roles="tomcat"/>

Was this answer helpful?

« Back