tomcat多域名配置
修改server.xml
<Engine name="Catalina" defaultHost="www.hsyz.net.cn"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> <Host name="www.hsyz.net.cn" appBase="/root/webapps/www_hsyz_net_cn" unpackWARs="true" xmlValidation="false" xmlNamespaceAware="false"> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="hsyz_access_log." suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> </Host> <Host name="2012.hsyz.net.cn" appBase="/root/webapps/2012_hsyz_net_cn" unpackWARs="true" xmlValidation="false" xmlNamespaceAware="false"> </Host> <Host name="hsms.hsyz.net.cn" appBase="/root/webapps/hsms_hsyz_net_cn" unpackWARs="true" xmlValidation="false" xmlNamespaceAware="false"> </Host> </Engine>
相关推荐
FanErZong 2020-07-18
86284851 2020-06-16
85427617 2020-06-13
88291846 2020-06-07
86284851 2020-02-28
81510598 2020-01-08
88291846 2020-01-04
86284851 2019-12-28
detianlangzi 2014-06-17
85427617 2019-12-24
87497118 2019-11-28
82981634 2014-03-25
85427617 2015-08-19
81510598 2019-11-11
86284851 2019-11-08
doITwhat 2015-09-11