mysql配置多个域名访问吗,tomcat部署多个项目,通过域名解析访问,不同的网站...
說明:
1.首先需要有多個域名,同時指向一個IP地址。
解析到一個公網IP地址:xxx.xxx.xxx.xxx
2.需要對tomcat下的conf下的"server.xml"進行配置
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
connectionTimeout="20000"
redirectPort="8443" URIEncoding="gbk" />
resourceName="UserDatabase"/>
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
這樣,就可以訪問多個項目,通過不同的域名進行。
總結
以上是生活随笔為你收集整理的mysql配置多个域名访问吗,tomcat部署多个项目,通过域名解析访问,不同的网站...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php7.2获取年份的格式,7.7.2
- 下一篇: linux cmake编译源码,linu