Configure domain names using Tomcat

xiaoxiao2021-03-06  57

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 modified to

3. Create a directory in / conf / catalina directory "", then establish root.xml file, the format and the root.xml under the / conf / localhost directory, but the content is as follows:

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.

转载请注明原文地址:https://www.9cbs.com/read-83268.html

New Post(0)