同一个端口下多个项目或者不同端口下多个项目
<Service name="Catalina">
<Context path="/" reloadable="true" docBase="/home/ubuntu/ll3d/apache-tomcat-8.5.23/webapps"/>
<Context path="/gateway" reloadable="true" docBase="/home/ubuntu/ll3d/apache-tomcat-8.5.23/webapps/gateway"/>
<Context path="/interface" reloadable="true" docBase="/home/ubuntu/ll3d/apache-tomcat-8.5.23/webapps/interface"/>
<Context path="/vreitor" reloadable="true" docBase="/home/ubuntu/ll3d/apache-tomcat-8.5.23/webapps/vreitor"/>
<Connector port="8089" protocol="HTTP/1.1"connectionTimeout="20000"redirectPort="8443" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/></Realm>
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b" />
</Host>
</Engine>
</Service>
<Service name="Catalina1">
<Context path="/" reloadable="true" docBase="/home/ubuntu/ll3d/apache-tomcat-8.5.23/webapps-cms"/>
<Context path="/gateway" reloadable="true" docBase="/home/ubuntu/ll3d/apache-tomcat-8.5.23/webapps-cms/gateway"/>
<Context path="/interface" reloadable="true" docBase="/home/ubuntu/ll3d/apache-tomcat-8.5.23/webapps-cms/interface"/>
<Connector port="8081" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
<Engine name="Catalina1" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
</Realm>
<Host name="localhost" appBase="webapps_cms" unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b" />
</Host>
</Engine>
</Service>