简体   繁体   中英

IIS getting 403 error when it was working before

There is a virtual machine COQTXX01 with Windows Server 2016 Standard operating system. It has IIS 10.0.

We had an employee Joe who recently left the job. Joe's user account still exist on domain. On this machine there is a C:\company_sites folder. Joe created that folder so he is owner of that folder.

Another employee Paul created a new site QTA8888 in C:\company_sites\QTA8888 folder. Paul created that folder so he is owner of that folder. The Site uses ApplicationPoolIdentity and is bind to a URL. On C:\company_sites\QTA8888 folder, the COQTXX01\IIS_IUSRS group has full control.

Now when I try to access QTA8888 via URL, I get 403 - Forbidden: Access is denied error message.

403 - Forbidden: Access is denied

You do not have permission to view this directory or page using the credentials that you supplied.

What could be the reason? I am a bit new to IIS stuff.

Make sure you installed iis .net feature.

add below code in your web.config file:

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
    <directoryBrowse enabled="true" />
</system.webServer>

and make sure this is set if you are restricted users in your config file:

<allow  users="?" />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM