简体   繁体   English

可以使用IP地址浏览,但不能使用URL浏览

[英]Can browse using IP address but cannot browse using URL

I am here because I have a problem installing a web application, here is the situation: 1. We are installing a web application which is supposed to be accessible from both internet and intranet. 我在这里是因为我在安装Web应用程序时遇到问题,情况如下:1.我们正在安装一个应该可以从Internet和Intranet访问的Web应用程序。 2. Now we can only browse it using the ip address of the server in our internal website (intranet). 2.现在,我们只能使用内部网站(内联网)中服务器的IP地址进行浏览。 3. It cannot be browsed if using the URL with / .aspx file, but available with URL/ .html. 3.如果将URL与/ .aspx文件一起使用,则无法浏览,但可以与URL / .html一起使用。 For example, it is not available using http://test.mycompany.com/Default.aspx . 例如,使用http://test.mycompany.com/Default.aspx不能使用它。 However, it is available using http://test.mycompany.com/test.html . 但是,可以使用http://test.mycompany.com/test.html进行访问 In other words, all the .asp file are not accessible, but html is ok. 换句话说,所有.asp文件都不可访问,但是html可以。

I don't have much knowledge in this field, just follow the installation guide provided by the supplier. 我在该领域没有太多知识,只需遵循供应商提供的安装指南即可。 Can someone help me to solve this. 有人可以帮我解决这个问题吗? Thanks a lot! 非常感谢!

It sounds like you need to enable ASP.NET in IIS. 听起来您需要在IIS中启用ASP.NET。

On your web server, open up IIS Manager, in the left-hand pane select your web server, in the content pane, in the group labeled "IIS", find the the tile labled "ISAPI and CGI Restrictions". 在Web服务器上,打开IIS管理器,在左侧窗格中选择您的Web服务器,在内容窗格中的“ IIS”组中,找到标记为“ ISAPI and CGI Restrictions”的图块。 Double-click on that to open it. 双击打开它。

You should see a list of ISAPI and CGI extensions. 您应该看到ISAPI和CGI扩展的列表。 Ensure that ASP.NET is set to "Allowed". 确保将ASP.NET设置为“允许”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM