繁体   English   中英

IIS网站使用localhost但不能使用IP地址或域名

[英]IIS Website working using localhost but not with IP Address or domain names

我访问配置为使用Windows身份验证的.NET网站时遇到问题(站点与表单身份验证配合正常)。 每次尝试使用正确的域名或IP地址访问站点时,我都会收到401条授权消息,但是通过localhost访问站点时,该站点可以按预期工作

以下是我的web.config(身份验证节点)

通过Localhost访问站点

在IIS中启用Windows身份验证/ ASP.net模拟

我对applicationhost.config进行了一些更改,但没有一个给我想要的结果。 对ApplicationHost.config

我也尝试过以下网址中提到的项目,但运气不佳。 https://support.microsoft.com/en-gb/help/896861/you-receive-error-401-1-when-you-browse-a-web-site-that-uses-integrate

https://support.microsoft.com/en-us/help/303650/intranet-site-is-identified-as-an-internet-site-when-you-use-an-fqdn-o

https://support.microsoft.com/en-us/help/258063/internet-explorer-may-prompt-you-for-a-password

如果您中有人遇到此问题,请提供帮助。

仅供参考,我已将此站点托管在AWS上,并且出于测试目的,已启用来自所有IP的传入https / https通信。 服务器:Windows Server 2016 IIS:IIS 10

通过从NTLM切换到Kerberos并创建适当的SPN条目,我终于能够使它工作。 还必须将站点添加到本地Intranet站点

Below is the link that I referred.

https://blogs.msdn.microsoft.com/chiranth/2014/04/17/setting-up-kerberos- 
authentication-for-a-website-in-iis/

https://blogs.msdn.microsoft.com/askie/2012/06/05/how-to-configure-internet-explorer- 
security-zone-sites-using-group-polices/

Had to additionally do this for Firefox

Enter about:config and modify a couple of entries.
network.negotiate-auth.delegation-uris
network.negotiate-auth.trusted-uris
network.automatic-ntlm-auth.trusted-uris
Enter my domain on these settings

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM