![](/img/trans.png)
[英]How to fix WAMP page access when using IP Address instead of localhost in the URL
[英]I am using Window Server 2008 VPS, how to make that when user type the IP address it will go to Tomcat page not IIS page?
我刚刚用Window Server 2008购买了Godaddy虚拟专用服务器计划。
我可以通过远程桌面连接登录VPS服务器。 每个VPS都有一个IP地址。 当用户键入我的idaddress xxxx时,它将显示默认的IIS7页面,如下所示:
好的,现在我下载了Tomcat7,JRE6,并且可以在http://localhost:8080/
或xxxx:8080
看到tomcat页面。 现在,我希望输入idaddress xxxx时将显示默认的Tomcat页面,而不是IIS7页面。
这就是我所做的。 我编辑了C:\\tomcat7\\conf\\server.xml
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" /> //changed port from 8080 to 80
好的,现在当输入xxxx:8080
它显示了Unable to connect
,当输入xxxx
它仍然显示了IIS7页面。
如何配置,以便当用户键入我的idaddress xxxx时,它将显示默认的Tomcat页面而不是IIS7页面?
额外信息:现在我刚刚在WindowServer中关闭了World Wide Publishing service
,并且我希望当输入xxxx
时它将显示Tomcat默认页面,但什么也没显示
好的,我做到了,很简单,只需在WindowServer中关闭World Wide Publishing service
,然后将C:\\tomcat7\\conf\\server.xml
端口8080更改为80,现在输入ipaddress时它会显示tomcat默认页面
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.