title: Identity Server Endpoints OIDC
body: <p>I am using Identity server and hosting it under IIS. It was working fine when hosted directly under <code>http://localhost:44431</code></p>
  
  <p><strong>Step 1:</strong> call <a href="http://localhost:44431/account/login?returnUrl=/connect/authorize/login?respone_type" rel="nofollow noreferrer">http://localhost:44431/account/login?returnUrl=/connect/authorize/login?respone_type</a>....
   <strong>Step 2:</strong> Then  it goes to the Authorize Endpoint and a return a token</p>
  
  <p><strong>Probelm hosting under localhost\id:</strong> </p>
  
  <p>However, when I deploy the application on IIS under Default Web site as <code>localhost\id</code>. It stops working.</p>
  
  <p><strong>Step 1:</strong> Calling  <a href="http://localhost/id/account/login?returnUrl=/connect/authorize/login?respone_type" rel="nofollow noreferrer">http://localhost/id/account/login?returnUrl=/connect/authorize/login?respone_type</a>....</p>
  
  <p><em>>> Inspecting the Request Headers:</em></p>
  
  <p><a href="https://i.stack.imgur.com/YUJFv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YUJFv.png" alt="enter image description here"></a></p>
  
  <p><em>>> Response Header:</em></p>
  
  <p><a href="https://i.stack.imgur.com/kvKkX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kvKkX.png" alt="enter image description here"></a></p>
  
  <p><em>>> Open Id Configuration at <a href="http://localhost/id/.well-known/openid-configuration" rel="nofollow noreferrer">http://localhost/id/.well-known/openid-configuration</a></em></p>
  
  <pre><code>  "authorization_endpoint":"http://localhost/id/connect/authorize",
  </code></pre>
  
  <p><strong>Step 2:</strong> Calling the <code>/connect/authorize</code> endpoint:</p>
  
  <p><em>>> Inspecting the Headers:</em></p>
  
  <p><a href="https://i.stack.imgur.com/cGnIP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cGnIP.png" alt="enter image description here"></a></p>
  
  <p>It didn't include the <code>id</code> virtual directory, that's why it is failing. where in the process I have to fix this? </p>