Tutorial by Examples

Tomcat's Host Manager application by default is located at http://localhost:8080/host-manager, but is not accessible until a user is given permission in the conf/tomcat-users.xml file. The file needs to have: A manager-gui role A user with this role For example: <tomcat-users> ......
Once you have access to the host-manager, the GUI will let you add a virtual host. Note: In Tomcat 7 and 8, adding a virtual host via the GUI does not write the vhost to config files. You will need to manually edit the server.xml file to have the vhost available after a restart. See http://tomc...
Once a virtual host has been added via the web application, directories will exist at: {CATALINA_HOME}\conf\Catalina\{Name} {CATALINA_HOME}\{App Base} To persist the virtual host after a restart, the server.xml file must be updated with the configuration. A Host element needs to be added inside...

Page 1 of 1