[{"data":1,"prerenderedAt":117},["ShallowReactive",2],{"/2025/12/09-iis-401-error-on-new-website":3},{"id":4,"title":5,"body":6,"date":108,"description":81,"extension":109,"meta":110,"navigation":111,"path":112,"robots":113,"seo":114,"stem":115,"__hash__":116},"posts/2025/12/09 IIS-401-error-on-new-website.md","09 IIS 401 Error On New Website",{"type":7,"value":8,"toc":105},"minimark",[9,18,25,28,31,56,58,61,63,66,68,82,84,87,89,100,102],[10,11,13],"post-title",{":date":12},"date",[14,15,17],"h1",{"id":16},"iis-401-error-on-new-website","IIS 401 Error on New Website",[19,20,21],"notes",{},[22,23,24],"p",{},"This is a repost from my old blog. First posted in 7/13/2020.",[26,27],"br",{},[22,29,30],{},"I had a new site setup on IIS and thought I got everything setup fine. Everything seems ok from:",[32,33,34,38,41,44,47,50,53],"ul",{},[35,36,37],"li",{},"Binding",[35,39,40],{},"SNI",[35,42,43],{},"Certificate",[35,45,46],{},"Enable Allow Anonymous",[35,48,49],{},"Directory permission",[35,51,52],{},"Redirect",[35,54,55],{},"etc",[26,57],{},[22,59,60],{},"Guess what? Can't even access my home page.",[26,62],{},[22,64,65],{},"The server throws the following error:",[26,67],{},[69,70,71],"code-block",{},[72,73,78],"pre",{"className":74,"code":76,"language":77},[75],"language-text","401 - Unauthorized: Access is denied due to invalid credentials.\nYou do not have permission to view this directory or page using the credentials that you supplied.\n","text",[79,80,76],"code",{"__ignoreMap":81},"",[26,83],{},[22,85,86],{},"Usually it is because of permission on the directory. But this time it looks fine. Weird thing is I can visit aspx page, but some of the static files are blocked.",[26,88],{},[22,90,91,92,99],{},"After some browsing, I noticed the value under ",[79,93,98],{"className":94},[95,96,97],"bg-gray-200","p-2","rounded","Site > Authentication > Anonymous Authentication > Edit... (right-click)"," of the other site that works fine was set to Application pool identity. Meanwhile, my new site was set to Specific user: IUSR and my directory only allow access to IIS_IUSRS.",[26,101],{},[22,103,104],{},"In my case, setting the above to Application pool identity solves my issue.",{"title":81,"searchDepth":106,"depth":106,"links":107},2,[],"2025-12-09T00:00:00.000Z","md",{},true,"/2025/12/09-iis-401-error-on-new-website",null,{"title":5,"description":81},"2025/12/09 IIS-401-error-on-new-website","RoXSVhGSMm8NCaxaAvti4NvUwuQ7u58xX6aF056qFuY",1785167452250]