首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX
›
问与答
tomcat 绑定二级域名,为什么有时候可以,有时候不可以
muziling
·
2015 年 9 月 18 日
· 2404 次点击
这是一个创建于 3810 天前的主题,其中的信息可能已经有所发展或是发生改变。
比如域名
www.xxx.com
和
test.xxx.com
都在 DNS 服务商那里指向同一个 IP,
tomcat 的 server.xml 配置两个 host , hostname 分别设置为
www.xxx.com
和
test.xxx.com
有时候通过
test.xxx.com
访问能正确访问 test 对应的 tomcat 工程,有时候却错误访问到
www.xx.com
对应的 tomcat 工程。
tomcat
有时候
域名
访问
2 条回复
•
2015-09-18 09:19:23 +08:00
1
mittya
2015 年 9 月 18 日
你最好帖出来 server.xml 对应的配置
2
niko
2015 年 9 月 18 日
建议前面加 apache/nginx ,让 tomcat 躲在后面。
关于
·
帮助文档
·
自助推广系统
·
博客
·
API
·
FAQ
·
Solana
·
1909 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms ·
UTC 10:26
·
PVG 18:26
·
LAX 02:26
·
JFK 05:26
♥ Do have faith in what you're doing.
❯