[英]IIS Website working using localhost but not with IP Address or domain names
我訪問配置為使用Windows身份驗證的.NET網站時遇到問題(站點與表單身份驗證配合正常)。 每次嘗試使用正確的域名或IP地址訪問站點時,我都會收到401條授權消息,但是通過localhost訪問站點時,該站點可以按預期工作
我對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/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.