访问站点时Windows登录提示 [英] Windows Login Prompt When Accessing Site
问题描述
使用localhost以外的主机访问IIS上的站点时,我收到Windows登录提示.
I receive a Windows login prompt when accessing a site on IIS with a host other than localhost.
例如,
http://localhost/mysite -- works
http://ipaddresss/mysite -- login prompt
如果在Web应用程序的IIS设置中启用了匿名访问",则提示消失,我可以正常访问该网站.我也启用了Windows身份验证.
For example,
http://localhost/mysite -- works
http://ipaddresss/mysite -- login prompt
If I enable Anonymous Access in the IIS settings for the web application, the prompt goes away and I can access the site fine. I have Windows Authentication enabled as well.
我希望能够在没有Windows登录提示的情况下禁用匿名访问.
I want to be able to disable Anonymous Access without getting the windows login prompt.
Windows IIS 7.5 Windows Server 2008 R2 ASP.NET 4.5 MVC Web应用程序
Windows IIS 7.5 Windows Server 2008 R2 ASP.NET 4.5 MVC Web application
这似乎与浏览器无关.无论是IE还是Firefox,我都会得到相同的行为.
This does not seem to be browser related. I get the same behavior whether it's IE or Firefox.
推荐答案
这是一个Internet设置,可以在IE或控制面板中进行更改.
It's an internet setting, which can be changed in IE or the control panel.
Internet选项->安全->本地Intranet->网站-使您的网站/域在列表中
Internet Options -> Security -> Local Intranet -> Sites - Making your your site/domain is in the list
IE不在Intranet区域中或不在Intranet站点列表中,则它会提示Windows凭据.将该站点添加到您的Intranet区域列表中以进行自动登录.
IE is prompting for windows credentials if it's not in the Intranet Zone or not in the list of intranet sites. Add the site to your intranet zones list for automatic login.
这篇关于访问站点时Windows登录提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!