Tomcat 虚拟主机配置

tomcat 8.5.23版本:

# vim /usr/local/tomcat/conf/server.xml  
---------------------------------------------
<Host name="www.hehe.com" appBase="/www/site1" autoDeploy="true" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">
    <Context path="/" docBase="/www/site1" reloadable="true" />
</Host>
 
<Host name="www.haha.com" appBase="/www/site2" autoDeploy="true" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">
    <Context path="/" docBase="/www/site2" reloadable="true" />
</Host>
posted @ 2017-11-27 21:46  miclesvic  阅读(175)  评论(0编辑  收藏  举报