I'm trying to set up permissions for my web application running on IIS 7 so that other web applications did not have any access to it.
I first set it up to run under my own application pool that I named MyAppsPoolName2
, as ApplicationPoolIdentity
:
The anonymous authentication is enabled and set up to use app pool identity:
After that I configure the ACL permissions as such:
The root folder for my web application: "C:\inetpub\www_test1" is set up with the following permissions:
- Allow FILE_GENERIC_READ to
IIS AppPool\MyAppsPoolName2
- Deny FILE_ALL_ACCESS to
IUSR
- Deny FILE_ALL_ACCESS to
IIS_IUSRS
So after I install & start my web site in the IIS, I get the following error:
HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.
Any idea how to fix this?
PS > Get-Acl C:\Inetpub\www_test1 | fl
Also, if you remove your DENY permissions does it work then? (I believe the AppPoolIdentities are part of the IIS_IUSRS group and DENY takes precedence over ALLOW) – Brock HensleyGet-Process : Cannot find a process with the name "C:\Inetpub\www_test1". Verify the process name and call the cmdlet again.
– ahmd0deny
permissions, it works just fine -- but that defeats the purpose of what I'm trying to achieve... – ahmd0