Create Virtual Host in Apache Tomcat 7 and 8
In order to create virtual host in Tomcat please follow the steps given below.
Step 1 : Create your document root under the $CATALINA_HOME
Step 2 : Edit the “$CATALINA_HOME/conf/server.xml” file with the following syntax.
Step 3 : Restart Tomcat service
Step 4 : Upload your jsp files to the “/opt/tomcat/apache-tomcat-8.5.24/webapps/MySite”.
That’s all !!