IIS 7将默认网站重定向到自定义页面

IIS 7将默认网站重定向到自定义页面,iis,iis-7,webserver,windows-server-2008,Iis,Iis 7,Webserver,Windows Server 2008,我们有一个在IIS 7上设置的网站,正在尝试用新网站替换它 旧网站使用自定义文件作为主页,称为WN-main.asp 新站点不再使用ASP,我们希望使用常规index.html作为主文件。然而,当我们访问该网站时,它一直试图将我们的.com重定向到.com/WN-main.asp 在IIS的“默认文档”设置中,我们在顶部有index.html,在列表中找不到WN-main.asp(它从未出现过)。这个重定向在IIS中究竟位于何处?:) 我们还从根目录中删除了web.config文件,并将整个旧网

我们有一个在IIS 7上设置的网站,正在尝试用新网站替换它

旧网站使用自定义文件作为主页,称为WN-main.asp

新站点不再使用ASP,我们希望使用常规index.html作为主文件。然而,当我们访问该网站时,它一直试图将我们的.com重定向到.com/WN-main.asp

在IIS的“默认文档”设置中,我们在顶部有index.html,在列表中找不到WN-main.asp(它从未出现过)。这个重定向在IIS中究竟位于何处?:)

我们还从根目录中删除了web.config文件,并将整个旧网站放在子目录中。以及重新启动的IIS。知道这个重定向在哪里吗


谢谢

在IIS中,您可以将设置配置到网站以外的其他级别,例如定义服务器所有站点设置的machine.config文件。站点的最终配置不仅将使用web.config,还将使用这些其他父级配置

检查这些文件,查看是否有任何文件定义了错误的


摘自:

我们不确定到底是什么导致了问题-不知何故,旧主页可能被缓存在服务器上,页面本身重定向到了/WN-main.asp页面…尽管服务器不应该缓存任何内容,并且我们最初已经多次检查过。在玩了很多设置之后,它突然开始工作了!Grrr微软。事实上,我们禁用和启用asp和.net可能有所帮助,但我不确定…至少它现在起作用了

要查看实际错误,您可以立即转到,不过很快我们将不得不将旧的ASP站点备份。嘿,我现在得到404错误链接。这个问题解决了吗?@Kim L当我去worzalla.com时,我看到了一个非常好的网页。我真的很羡慕你的造型和外观。我得不到直接回复。当我转到worzalla.com/wn-main.asp时,我得到一个404错误。只是服务器上某个模糊的缓存最终被清除了吗?谢谢!我们不确定到底是什么导致了问题——不知何故,旧主页可能被缓存在服务器上,页面本身重定向到/WN-main.asp页面……即使服务器不应该缓存任何内容。在玩了很多东西之后,它突然开始工作了!Grrr Microsoft。(我们也禁用并重新启用了asp和.net,这可能会有所帮助)
Server-level configuration is stored in the following configuration files:    
- Machine.config. This file is located in %windir%\Microsoft.NET\Framework\framework_version\CONFIG.    
- Root Web.config for the .NET Framework. This file is located in %windir%\Microsoft.NET\Framework\framework_version\CONFIG.    
- ApplicationHost.config. This file is located in %windir%\system32\inetsrv\config.

Site, application, and virtual and physical directory configuration can be stored in one of the following locations:    
- A server-level configuration file. When configuration for a site, application, directory, or URL is stored in a server-level configuration file, you must use a location tag to specify the site, application, directory, or URL to which the configuration applies.    
- A parent-level Web.config file. When configuration for an application, directory, or URL is stored in a parent-level configuration file, you must use a location tag to specify the child at which the configuration applies.     
- The Web.config file for the site, the application, or the directory. When you configure settings for an application, directory, or URL, the configuration is stored in the same directory as the site, application, or directory. You do not need to use location tags.