windows - 我正在使用 Window Server 2008 VPS,当用户输入 IP 地址时,如何使它转到 Tomcat 页面而不是 IIS 页面?

标签 windows apache tomcat iis

我刚刚购买了带有 Window Server 2008 的 Godaddy 虚拟专用服务器计划。

我可以通过远程桌面连接登录 VPS 服务器。每个 VPS 都有一个 IP 地址。当用户键入我的 idaddress x.x.x.x 时,它将显示默认的 IIS7 页面,如下所示: enter image description here

好的,现在我下载了Tomcat7、JRE6,可以在http://localhost:8080/x.x.x.x:8080看到tomcat页面了。现在我希望在输入我的 idaddress x.x.x.x 时它会显示默认的 Tomcat 页面而不是 IIS7 页面。

这就是我所做的。我编辑了 C:\tomcat7\conf\server.xml

  <Connector port="80" protocol="HTTP/1.1"
           connectionTimeout="20000"
           redirectPort="8443" /> //changed port from 8080 to 80

好的,现在输入x.x.x.x:8080时显示Unable to connect,输入x.x.x.x时仍然显示IIS7页面。

如何配置以便当用户输入我的 idaddress x.x.x.x 时它会显示默认的 Tomcat 页面而不是 IIS7 页面?

额外信息:现在我刚刚关闭了 WindowServer 中的 World Wide Publishing 服务,我预计在输入 x.x.x.x 时它会显示 Tomcat 默认页面,但它显示什么都没有

最佳答案

好的,我做到了,非常简单,只需关闭 WindowServer 中的 World Wide Publishing 服务,然后将 C:\tomcat7\conf\server.xml 中的端口 8080 更改为80 & 现在输入 ipaddress 时显示 tomcat 默认页面

关于windows - 我正在使用 Window Server 2008 VPS,当用户输入 IP 地址时,如何使它转到 Tomcat 页面而不是 IIS 页面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23581857/

相关文章:

git - 在 Windows 服务器上使用 Apache 配置 Git

java - 从 public_html war 应用程序部署 Tomcat

tomcat - 请求 header 正在转换为大写

tomcat - JDBCAccessLogValue - 将 HTTP POST 内容记录到 SQL Server

windows - Windows 与 Linux 中的 Eclipse 内存使用情况

windows - 奇怪的字符 : interaction of R and Windows locale?

apache - 如何在 Apache 中为 HTTP 基本身份验证响应设置 Access-Control-Allow-Origin header ?

php - Apache 使用它自己的 404 处理程序而不是 index.php 来处理 .txt 文件

windows - 'dpinst/silent' 在带有签名(但不是 WHQL)驱动程序的 Windows XP 上失败

c++ - Windows 驱动程序 : ZwReadFile returns STATUS_INVALID_HANDLE