简体   繁体   English

ASP.NET和IIS 7.5-HTTP错误403.14-禁止

[英]ASP.NET and IIS 7.5 - HTTP Error 403.14 - Forbidden

I try to configure IIS 7.5 on a new server (Windows Server 2008 R2), in order to run an ASP.NET 4.0 application. 我尝试在新服务器(Windows Server 2008 R2)上配置IIS 7.5,以便运行ASP.NET 4.0应用程序。 Two "domains" are defined on the server (managed with Parallels Plesk), each one appearing as a site in IIS. 在服务器上定义了两个“域”(由Parallels Plesk管理),每个域都显示为IIS中的站点。 One domain is for the public site, the other is used for tests. 一个域用于公共站点,另一个域用于测试。 At the present time, the DNS of the test site points to that new server while the DNS of the public site still points to our old server. 目前,测试站点的DNS指向该新服务器,而公共站点的DNS仍指向我们的旧服务器。 We transfer the test site first, to see if everything is OK, before transfering the public site to the new server. 在将公共站点转移到新服务器之前,我们首先转移测试站点,看一切是否正常。

Pointing to the test site in IIS, if I run the Browse command on the folder of the application, I get the HTTP Error 403.14, with the message: The Web server is configured to not list the contents of this directory . 指向IIS中的测试站点,如果我在应用程序的文件夹上运行“浏览”命令,则会收到HTTP错误403.14,并显示以下消息: Web服务器配置为不列出此目录的内容 The strange thing is this: if I put the exact same folder structure in the other domain on the same server, and I run the same Browse command, I see the default page of the application (I don't know if everything works after that but, at least, the first page shows up as expected). 奇怪的是:如果我将完全相同的文件夹结构放在同一服务器的另一个域中,并且运行相同的“浏览”命令,则会看到该应用程序的默认页面(我不知道之后是否一切正常但是至少第一页会按预期显示)。 I should add: 我应该补充:

  • Both sites use the same application pool. 两个站点使用相同的应用程序池。
  • Both sites have the same permissions (I checked one by one, also compared with cacls) 这两个网站具有相同的权限(我一一检查,也与cacls进行了比较)
  • The default page is not set in IIS but is the authentication form specified in Web.config IIS中未设置默认页面,但Web.config中指定了身份验证表单

So, same setup but different results. 因此,相同的设置但结果不同。 I don't know if there is something else that I should check. 我不知道是否还有其他应检查的内容。 I am on very shaky ground when I talk about server configuration and IIS; 当我谈论服务器配置和IIS时,我处于不稳定的境地。 so I hope that this description is clear enough and makes sense. 所以我希望这个描述足够清楚并且有意义。

I think I found it. 我想我找到了。 It probably doesn't work for both sites on the new server. 这可能不适用于新服务器上的两个站点。 When I run the Browse command, it shows the page in IE using the DNS of the site. 当我运行浏览命令时,它将使用站点的DNS在IE中显示该页面。 Since the DNS of the public site still points to the old server, the page displayed in IE is not from the folder that I clicked, but rather from the old server site. 由于公共站点的DNS仍然指向旧服务器,因此IE中显示的页面不是来自我单击的文件夹,而是来自旧服务器站点。

I can now look for standard solutions to the 403.14 problem on the new server... 我现在可以在新服务器上寻找403.14问题的标准解决方案...

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

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