Hi all,
I am setting up a file server which serves up remote mounts among other things, and those remote mounts sometimes contain spurious web.config files. I am trying to figure out how to prevent such files from beign read. From what I found on the web, it sounds like I have to make a web.config file in each local parent directory inside which a remote virtual directory is mounted, and disable inheritance override there. However, the following web.config file doesn't work:
<?xml version="1.0" encoding="UTF-8"?><configuration><location path="." overrideMode="Deny" inheritInChildApplications="false"><system.webServer></system.webServer></location></configuration>
I am unfamiliar with IIS, but it seems to me like this SHOULD be a fairly simple task -- either to deny the reading of web.config files under a given directory, or perhaps (even better)globally deny reading of web.config files on remotely mounted virtual directories.
Can someone help me get this ironed out?
Thanks.