iis 7 disable windows auth

▼魔方 西西 提交于 2020-01-16 09:00:51

问题


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.

I have this line in C:\Windows\System32\drivers\etc\hosts:

192.168.50.142     dev.mybigdomain.org.uk

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.

How can I disable the authentication?


回答1:


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

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

instead of

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


来源:https://stackoverflow.com/questions/5634148/iis-7-disable-windows-auth

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!