首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

Tomcat配备两个应用

2012-10-07 
Tomcat配置两个应用?xml version1.0 encodingUTF-8?Server port8005 shutdownSHUTDOWN ??

Tomcat配置两个应用

<?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="Catalina">
??????? <Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="gb2312"/>?
??????? <Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/>
??????? <Engine name="Catalina" defaultHost="localhost">
??????????? <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>?
??????????? <Host name="www.checkup.com" appBase="" unpackWARs="true" autoDeploy="false" xmlValidation="false" xmlNamespaceAware="false">
??????????????? <Context path="/" reloadable="true" docBase="E:\http\alss\Checkup\webapp" workDir="E:\http\alss\Checkup\work"/>
??????????? </Host>
??????????? <Host name="www.record.com" appBase="" unpackWARs="true" autoDeploy="false" xmlValidation="false" xmlNamespaceAware="false">
??????????????? <Context path="/" reloadable="true" docBase="E:\http\alss\Record\webapp" workDir="E:\http\alss\Record\work"/>
??????????? </Host>
??????? </Engine>
??? </Service>?
</Server>

另外,在C:\WINDOWS\system32\drivers\etc目录下找到hosts文件,添加127.0.0.1??????? www.record.com
127.0.0.1?????? www.checkup.com

?

127.0.0.1是回送地址,指本地机,一般用来测试使用。回送地址(127.x.x.x)是本机回送地址(Loopback Address),即主机IP堆栈内部的IP地址,主要用于网络软件测试以及本地机进程间通信,无论什么程序,一旦使用回送地址发送数据,协议软件立即返回,不进行任何网络传输。

?

热点排行