Accessing web application through Domain name by using windows setup and without using any Domain register support. This is possible by editing every computer Hosts file with entries that resolve each and every websites domain name and aliases to the computer IP address of the server.
Step 1: First you specify the Domain name for your local system IP.
Goto C:\windows\System32\Drivers\etc\hosts file and add following entry at the end of the file.
127.0.0.1 localhost-> to-> 127.0.0.1 www.yourdomain.com
Note :In this if you try to save this file you need administrative permissions of the file. To avoid this open notepad in Run as administration mode.
Step 2: Change tomcat server http port no to 80 in Tomcat_home/conf/server.xml file.
Note: the protocol Http looks to use the services of 80 port number.
Step 3: Make sure that your web application is deployed in Tomcat server with Welcome file configuration.
Step 4: Place the following host tag under engine tag of Tomcat_home/conf/server.xml file.
Step 5: Restart the server and Text the application.
(URL:www.youdomain.com)
Note: In the above host tag we can place our choice folder name in appBass attribute to collect “your web application name” web application from that folder without looking in Tomcat_home/web_application.
Step 1: First you specify the Domain name for your local system IP.
Goto C:\windows\System32\Drivers\etc\hosts file and add following entry at the end of the file.
127.0.0.1 localhost-> to-> 127.0.0.1 www.yourdomain.com
Note :In this if you try to save this file you need administrative permissions of the file. To avoid this open notepad in Run as administration mode.
Step 2: Change tomcat server http port no to 80 in Tomcat_home/conf/server.xml file.
Note: the protocol Http looks to use the services of 80 port number.
Step 3: Make sure that your web application is deployed in Tomcat server with Welcome file configuration.
Step 4: Place the following host tag under engine tag of Tomcat_home/conf/server.xml file.
Step 5: Restart the server and Text the application.
(URL:www.youdomain.com)
Note: In the above host tag we can place our choice folder name in appBass attribute to collect “your web application name” web application from that folder without looking in Tomcat_home/web_application.