How to protect a directory with Private JVM?

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:

`

Wildcard means whole app requires authentication
/*
GET
POST

tomcat

BASIC
`

Your tomcat-users.xml should contains: