<?xml version="1.0" encoding="utf-8" ?> - - <Server port="8005" shutdown="SHUTDOWN"> <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> <Listener className="org.apache.catalina.core.JasperListener" /> <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> - - <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="Catalina2"> <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8453" /> <Connector port="8019" protocol="AJP/1.3" redirectPort="8453" /> - <Engine name="Catalina" defaultHost="218.16.224.143"> - <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase" /> - - <Host name="218.16.224.143" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Context path="/jeecms" docBase="D:\Program Files\webserver\apache-tomcat-6.0.18\webapps\jeecms" debug="0" reloadable="false" crossContext="true" /> </Host> </Engine> </Service> - - <Service name="Catalina"> - <Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> - <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> - - <Engine name="Catalina" defaultHost="localhost"> - base are immediately available for use by the Realm. --> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase" /> - <!-- Define the default virtual host Note: XML Schema validation will not work with Xerces 2.2. --> - <Host name="218.16.224.143" appBase="D:\webGame" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Alias>218.16.224.143</Alias> <Alias>st.testtest.com</Alias> <Context path="/" docBase="WebRoot" reloadable="true" caseSensitive="false" debug="0" /> </Host> <Host name="st.testtest123.com" appBase="D:\webGame" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Alias>st.testtest123.com</Alias> <Context path="/" docBase="WebRoot" reloadable="true" caseSensitive="false" debug="0" /> </Host> </Engine> </Service> </Server>
Tomcat多端口配置 Tomcat单端口多域名配置
最新推荐文章于 2018-12-17 13:08:03 发布