一、貌似多域名配置
1:将默认的8080端口改成80,因为80是默认的网页端口。
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
2:复制下面的内容,到/conf/server.xml下面。
unpackWARs="true" autoDeploy="true">
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html -->
<!--
prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
-->
3:在/home/temobi下面新建一个ROOT文件夹,
4:将本地的tomcat下面的temobi工程中的内容copy到/home/temobi/ROOT文件夹下面。
5:将tomcat/webapps下面的host-manager文件夹和manager文件夹copy到/home/temobi文件夹下面。
好了,大功告成!
二、单域名配置
1:将默认的8080端口改成80,因为80是默认的网页端口。
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
2:复制下面的内容,到/conf/server.xml下面。
unpackWARs="true" autoDeploy="true">
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html -->
<!--
prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
-->
3:将tomcat/webapps/ROOT下面的内容删除,将本地的工程中的文件夹放入到tomcat/webapps/ROOT下面。
好了,大功告成!
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29754888/viewspace-1220350/
,如需转载,请注明出处,否则将追究法律责任。