iis 7禁用Windows身份验证 [英] iis 7 disable windows auth

查看:138
本文介绍了iis 7禁用Windows身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IIS 7.5上设置了一个测试网站,我在VisualStudio中创建了一个Web应用程序项目,并在经典管道模式下在新的应用程序池中设置了一个网站。

I setup a test website on my IIS 7.5, I created a Web Application project in VisualStudio and set up a web site in a new application pool in Classic Pipeline Mode.

我在 C中有这一行:\ Windows \ System32 \ drive \ etcc \ hosts

192.168.50.142     dev.mybigdomain.org.uk

现在,如果我使用 http访问我的网站:http:/ /localhost/testHello/Default.aspx 它工作正常,
但是当我尝试 http://dev.mybigdomain.org.uk/testHello/Default.aspx 我得到一个Windows安全窗口要求进行身份验证,但是如果输入administrator和密码,它就无法识别它们,只是再次询问。

Now if I access my website with http://localhost/testHello/Default.aspx it works fine, but when I try http://dev.mybigdomain.org.uk/testHello/Default.aspx I get a "Windows security" window asking for authentication, but if enter "administrator" and password it does not recognise them and just asks again.

如何禁用身份验证?

推荐答案

您是否尝试更改 web.config 身份验证模式为表单

Have you try to change the web.config authentication mode to Forms or None?

 <system.web>
...
 <authentication mode="Forms">

而不是

<system.web>
...
<authentication mode="Windows">

这篇关于iis 7禁用Windows身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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