Configure a domain name under Tomcat (such as:
When www. ***. COM), do not want customers to access the Tomcat default root through our website IP or domain name, the formulation method is as follows:
1. Open the /conf/server.xml file in the Tomcat installation directory
2, in Server.xml, the original
3. Create a directory in / conf / catalina directory "
XML Version = '1.0' encoding = 'UTF-8'?>
Context>
The content in DOCBASE is what you want to open your domain (
Www. ***. COM) Maps to the directory and the default web page (such as index.jsp)
4. Start the Tomcat server, you can knock down the domain name to access the address you want to access.
About Tomcat configuration Multi-domain name, introduced in subsequent articles.