Detailed explanation of the website:
Http://wenku.baidu.com/link?url=-ACZxKUcfrbhrMRUP3Ov-Q_c-Q9JPrA9D1fzHjHuJsWwZfRsVDVQ2qBtoY7Ly5Os_ Ingqtijepsxk5dgel1of2um1hjxnxnmll6l5tdnxps
Java Web Project Publishing and how to use a custom domain name:
First step: Copy the Java Web Project project name to tomcat7.x installation directory/webapps: Below
C:\WebServer\apache-tomcat-7.0.12\webapps
Step Two: Open the Tomcat7.x/conf/server.xml file
Add/Modify Ports: (used here to add:)
If you want to switch to another port reference (a):
Add the following code between the <Host></Host> tags:
<context path= "" docbase= "Salfo" reloadable= "true" debug= "0" ></Context>
Docbase= "Salfo"//project name deployed under WebApps file
Step Three: modify the operating system's hosts file to configure the custom domain name:
Open: C:\WINDOWS\system32\drivers\etc Find the Hosts file
Java Web Project Publishing and use of custom domain names