[英]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?
I have just bought Godaddy Virtual Private Server plan with Window Server 2008. 我刚刚用Window Server 2008购买了Godaddy虚拟专用服务器计划。
I can login VPS Server via Remote Desktop Connection. 我可以通过远程桌面连接登录VPS服务器。 Each VPS has an IPaddress.
每个VPS都有一个IP地址。 when user types my idaddress xxxx it will show the default IIS7 page like this:
当用户键入我的idaddress xxxx时,它将显示默认的IIS7页面,如下所示:
Ok, now I downloaded Tomcat7, JRE6 & can be able to see tomcat page at http://localhost:8080/
or xxxx:8080
. 好的,现在我下载了Tomcat7,JRE6,并且可以在
http://localhost:8080/
或xxxx:8080
看到tomcat页面。 Now I want that when typing my idaddress xxxx it will show the default Tomcat page rather than IIS7 page. 现在,我希望输入idaddress xxxx时将显示默认的Tomcat页面,而不是IIS7页面。
So here is what I did. 这就是我所做的。 I edited
C:\\tomcat7\\conf\\server.xml
我编辑了
C:\\tomcat7\\conf\\server.xml
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" /> //changed port from 8080 to 80
Ok, now when entered xxxx:8080
it showed Unable to connect
, when entered xxxx
it still shows the IIS7 page. 好的,现在当输入
xxxx:8080
它显示了Unable to connect
,当输入xxxx
它仍然显示了IIS7页面。
How to config so that when user types my idaddress xxxx it will show the default Tomcat page rather than IIS7 page? 如何配置,以便当用户键入我的idaddress xxxx时,它将显示默认的Tomcat页面而不是IIS7页面?
Extra info: Now I have just turned off World Wide Publishing service
in WindowServer, & I expected that when entered xxxx
it will show the Tomcat default page but it showed nothing 额外信息:现在我刚刚在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.