tomact配置二级域名

来源:互联网 发布:杭州兼职外卖软件 编辑:程序博客网 时间:2024/05/24 15:40

tomact配置二级域名:

1、在域名解析的地方解析一个二级域名指向你的服务器Ip

2、配置tomact下的server.xml

<Host name="localhost"  appBase="webapps" unpackWARs="true" autoDeploy="true">

    <Context path="" docBase="/usr/local/apache-tomcat-7.0.70/webapps/digitCoreIS" debug="0"/>

 </Host>
 
 <Host name="news.jouyoo.com"  appBase="webapps" unpackWARs="true" autoDeploy="true">

    <Context path="" docBase="/usr/local/apache-tomcat-7.0.70/webapps/digitCoreIS" debug="0"/>

 </Host>

 

0 0
原创粉丝点击