您的位置:首页 > 运维架构 > Tomcat

Tomcat部署web项目绑定域名

2016-12-26 13:47 429 查看
找到server.xml文件,修改

<Host name="域名" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"><Context docBase="项目名" path="" reloadable="true" /></Host>


当然,我们还可以拥有多个域名,只不过配置文件中多了几个
<Host name="域名" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"><Context docBase="项目名" path="" reloadable="true" /></Host>
而已。

其中域名可以使用花生壳申请。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  tomcat web 域名 花生壳