如何将默认网页更改为IIS中文件夹中的页面 [英] How To Change Default Web Page To a Page in a folder in IIS

查看:133
本文介绍了如何将默认网页更改为IIS中文件夹中的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将我的网站文档的默认值更改为本地计算机上iis中的表单文件夹中存在的LogInPage.aspx页面。
$ b $将此配置添加到网站Web。配置文件:

i want to change the default of document of my website to the LogInPage.aspx page that exists in the Form Folder in the iis on my local machine.
i aded this configuration to the website web.config file:

<system.webServer>
	     <defaultDocument enabled="true">
         <files>
            <add value="\form\LogInPage.aspx" />
         </files>
      </defaultDocument>
  </system.webServer>





但仍然是同样的错误:





but still same error :

HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.

推荐答案

您可以查看以下链接以获取有关如何过来的参考问题



http://support.microsoft.com/kb/942062 [ ^ ]



http://www.iis.net/learn/web-hosting/web-server-for-shared-hosting/default-documents [ ^ ]



希望这有帮助
You can check the below links for a reference how to over come the issue

http://support.microsoft.com/kb/942062[^]

http://www.iis.net/learn/web-hosting/web-server-for-shared-hosting/default-documents[^]

Hope this helps


而不是尝试重定向,实现成员 [ ^ ]并使用web.config访问权限将未登录的成员定向到登录页面。这样,我不能选择

Rather than trying to redirect, implement Membership[^] and use the web.config access to direct non-logged in members to the login page. That way, I can't pick
www.YourDomain.com/IShouldBeLoggedInToSeeThis.aspx

作为我浏览器中访问的地址直接在那里。

如果你设置LoginForm文件夹具有开放权限,并且root需要登录,系统应首先将所有传入的访问者路由到登录表单,你不需要移动默认值页面根本 - 更简单!

as the address to visit in my browser and go directly there.
If you set that the LoginForm folder has open permissions, and the root requires login, the system should route all incoming visitors to the Login form first and you don't need to move the default page at all - much simpler!


这篇关于如何将默认网页更改为IIS中文件夹中的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆