2016-10-04 52 views
1

我试图在IIS 10中将身份服务器3作为独立应用程序托管。我添加了具有虚拟路径“/ identity”的应用程序,并将其指向我的调试目录。当我尝试浏览到“http://localhost/identity/.well-known/openid-configuration”时,我收到“HTTP错误404.0 - 未找到”。作为Visual Studio 2015下的独立服务器,调试目录中的项目运行得非常好。我已经用完了想法。在IIS中托管Identity Server 3

顺便说一句,我已经退出了SSL并关闭了https,目的是为了减少潜在的问题。

身份服务器日志:

w3wp.exe Warning: 0 : 2016-10-04 13:44:23.940 +01:00 [Warning] AuthorizationCodeStore not configured - falling back to InMemory 
w3wp.exe Warning: 0 : 2016-10-04 13:44:23.950 +01:00 [Warning] TokenHandleStore not configured - falling back to InMemory 
w3wp.exe Warning: 0 : 2016-10-04 13:44:23.952 +01:00 [Warning] ConsentStore not configured - falling back to InMemory 
w3wp.exe Warning: 0 : 2016-10-04 13:44:23.952 +01:00 [Warning] RefreshTokenStore not configured - falling back to InMemory 
w3wp.exe Information: 0 : 2016-10-04 13:44:24.346 +01:00 [Information] { 
    "Category": "Information", 
    "Name": "Signing certificate validation success", 
    "EventType": "Information", 
    "Id": 4012, 
    "Details": { 
    "SigningCertificateName": "CN=identityServer", 
    "SigningCertificateExpiration": "2019-12-31T23:00:00+00:00" 
    }, 
    "Context": { 
    "TimeStamp": "2016-10-04T12:44:24.2176795+00:00", 
    "ProcessId": 3888, 
    "MachineName": "NAME_CHANGED" 
    } 
} 

IIS日志:

2016-10-04 13:04:42 ::1 GET /identity/.well-known/openid-configuration - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/51.0.2704.79+Safari/537.36+Edge/14.14393 - 404 0 2 0 

任何帮助,将不胜感激。顺便说一句,这是一台新机器,所以我从头安装了IIS - 这总是会导致我无法解决问题。

回答

0

我找到的解决方案是将Identity Server 3部署到网站的根目录(在我的情况下是默认网站),而不是在应用程序中。