`

tomcat6多域名配置

 
阅读更多
tomcat6多域名配置,不多说了,看配置文件server.xml

<?xml version='1.0' encoding='utf-8'?>
<Server port="11370" 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="Catalina">

<Connector port="3137" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="4137" />

<Connector port="2137" protocol="AJP/1.3" redirectPort="4137" />

<Engine name="Catalina" defaultHost="www.591mylove.com">
<Host name="www.51mylove.com" appBase="/webapps/cn" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context path="/" docBase="webapps/cn"></Context>
</Host>
<Host name="www.ddjava.com" appBase="webapps/ddjava" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context path="/" docBase="webapps/ddjava"></Context>
</Host>

<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
</Host>
</Engine>

</Service>
</Server>
分享到:
评论
Global site tag (gtag.js) - Google Analytics