<?xml version="1.0" encoding="UTF-8"?>
<Server port="8105" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.startup.VersionLoggerListener" />
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8" />
<Connector port="8109" 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">
<!-- 配置同一域名访问 -->
<Context path="/construction-admin" docBase="D:/opt/loadweb/construction-admin" debug="0" privileged="true" reloadable="true"/>
<Context path="/construction-server" docBase="D:/opt/loadweb/construction-server" debug="0" privileged="true" reloadable="true"/>
</Host>
<!-- 配置不同域名访问 -->
<Host name="www.construction.server" appBase="webapps" unpackWARs="true" autoDeploy="true">
</Host>
<!-- 配置不同域名访问 -->
<Host name="www.platform.auth" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Context path="/platform-auth" docBase="D:/opt/loadweb/platform-auth" debug="0" privileged="true" reloadable="true"/>
</Host>
</Engine>
</Service>
</Server>
Tomcat多项目发布配置
最新推荐文章于 2024-06-02 19:00:00 发布