title: Setting up website on IIS 10 local workstation 401.1 and 401.2 errors using windows auth
body: <p>I have been going through other threads related to this, but for some reason I just cant get the past the authentication issue(s).  Im setting up a new website on my local windows 10 workstation,  leaving the default website intact.  Basically, doing the same steps as here
  <a href="http://www.thejoyofcode.com/Setting_up_two_web_sites_in_IIS7.aspx" rel="nofollow">http://www.thejoyofcode.com/Setting_up_two_web_sites_in_IIS7.aspx</a><br/>
  - Setup an alias in my hosts file<br/>
  - Setup the new website in IIS (in my case using v10)<br/>
  - Enable windows auth, disable anonymous auth<br/>
  - Set the app pool to run under [NETWORK SERVICE]<br/>
  - Under windows auth, make sure "Extended protection" is set to "Accept" and Kernel mode auth is checked<br/>
  - [NETWORK SERVICE] has full permissions to the root folder where the files for the website are located<br/>
  - The windows auth providers are sorted so that NTLM comes first.<br/></p>
  
  <p>When I try to request the url by the alias I have in the hosts file, I get a 401.1 error.</p>
  
  <p>As other testing, I dropped a simple test.html file in the root path and selected "browse" from my IIS admin tool and <strong>it displayed</strong>.  <strong>Not so</strong> when I selected an aspx file and tried to browse. Yet both failed when trying them via a url.</p>
  
  <p><strong>[Update1]</strong> <br/>
  When I try via url:
  HTTP Error 401.1 - Unauthorized</p>
  
  <p>Looking in the IIS log, I see lines like this
  2016-08-29 18:04:02 127.0.0.1 GET /Default.aspx - 80 - 127.0.0.1 Mozilla/5.0+(Windows+NT+10.0;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/52.0.2743.116+Safari/537.36 - <strong>401 2 5 571</strong></p>