I am configuring a Virtual Host in Tomcat.I followed following mentioned steps. After Setting a Virtual Host at the end Apache Tomcate7 is not starting properly.
Step 1.
I go to windows directory C:\Windows\System32\drivers\etc\hosts file for DNS Entry. I added following line to map IP with Host name.
192.168.1.109 omtstesting.com
Step 2.
I go to server.xml in apache-tomcat-7.0.42 and added new entry of host in Engine below default entry of host
Original apache server.xml file Engine (Working State)
<Engine name="Catalina" defaultHost="localhost">
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"/>
</Engine>
Changed apache server.xml file Engine (Not Working State)
<Engine name="Catalina" defaultHost="localhost">
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"/>
<Host name="omtstesting.com" appBase="omts_webapps"
unpackWARs="true" autoDeploy="true"/>
</Engine>
Step 3.
I go to apache-tomcat-7.0.42 and copy "webapps" folder and paste it and renamed pasted folder as "omts_webapps"
Step 4.
Now, I go to apache-tomcat-7.0.42\bin directory for starting Apache Server and I clicked startup.bat. Tomcat Console opens and closed automatically.
Kindly review and give a required answer, comment or feedback if any further step, action, improvement or modification is required for starting tomcat properly.