Enter the Tomcat-->conf-->server.xml.
Modify the following:
(1): Change the default port 8080 to 80
<connector port= "protocol=" http/1.1 "
connectiontimeout= "20000"
redirectport= "8443"/>
(2):
Domain name"Appbase=" WebApps "
Unpackwars= "true" autodeploy= "true"
Xmlvalidation= "false" Xmlnamespaceaware= "false" >
<context path= "" docbase= "/Project name" debug= "0"/> //directly enter the domain name to access the project for example: Loca Lhost
<context path= "/global" docbase= "/Another project name" debug= "0"/>//Enter the domain name +/global for example: Localhost/global
<!--Singlesignon valve, share authentication between Web applications
Documentation at:/docs/config/valve.html--
<!--
<valve classname= "Org.apache.catalina.authenticator.SingleSignOn"/>
-
<!--Access log processes all example.
Documentation at:/docs/config/valve.html--
<!--
<valve classname= "Org.apache.catalina.valves.AccessLogValve" directory= "Logs"
Prefix= "Localhost_access_log." suffix= ". txt" pattern= "common" resolvehosts= "false"/>
-
</Host>
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Configure multiple projects under one server, enter a domain name to access the project