Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Help -- need to completely disable reading of web.config in child directories

$
0
0

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.


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>