简体   繁体   English

我正在使用Window Server 2008 VPS,如何在用户键入IP地址时将其转到Tomcat页面而不是IIS页面?

[英]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.

相关问题 在URL中使用IP地址而不是localhost时如何解决WAMP页面访问 - How to fix WAMP page access when using IP Address instead of localhost in the URL 服务器从Windows 2008升级到Windows 2012后,IIS网站“无法显示页面” - IIS Web Site “Page Can Not Be Displayed” After Server Was Upgraded From Windows 2008 to Windows 2012 IIS:无法使用主机IP地址和端口号(不同于80)浏览服务器 - IIS: unable to browse server using host IP address plus Port number different from 80 如何在WPF中使窗口模态化到Page? - How to make a window modal to Page in WPF? 如何使用.NET以编程方式将MSSQL服务器别名转换为IP地址? - How can I programatically translate a MSSQL server alias to an IP address using .NET? 如何使用tomcat在Windows IIS中托管Spring项目? - How can I host a spring project in Windows IIS using tomcat? 如何配置服务器以发送电子邮件,IIS Windows Server 2008上安装了PHP - How can I configure my server to send email, PHP installed on IIS Windows Server 2008 Window 2008 Tomcat 7 MS SQL Server 2008R2 - 无法识别 JNDI JDBC 驱动程序 - Window 2008 Tomcat 7 MS SQL Server 2008R2 - JNDI JDBC Driver not recognized 在IIS 7上使用PHP发送邮件-Windows 2008 Server - Sending Mail using PHP on IIS 7 - Windows 2008 Server 使用Puppet在Windows Server 2008上安装tomcat 7(master是ubuntu) - Install tomcat 7 on windows server 2008 using puppet ( master is ubuntu )
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM