kdschool
asked on
IIS 7.0 Directory Browsing for virtual directories throwing error if set to disable at default web root. Is there a workaround?
Policy requires me to set my web directories to not allow directory browsing. If I do this at the default web directory I cannot change it in II7.0 for my virtual directories. It throws an error. The error shows the path to the folder and says cannot write configuration files. it works fine in I.E6. Also I can change any folder on the server to enable it and that works. The virtual directories work fine if it's disabled at the default web root. I have to allow these directories to accept directory browsing like on the old server while leaving all the other off. Any help would be appreciated.
I can do it if I go back and individually deny directory browsing on each folder but there is a lot of work involved in that and I still can't do the root directory itself since it does not show up in IIS interface like it does in the NT file structure.
I can do it if I go back and individually deny directory browsing on each folder but there is a lot of work involved in that and I still can't do the root directory itself since it does not show up in IIS interface like it does in the NT file structure.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I've requested that this question be deleted for the following reason:
No solution worked.
No solution worked.
ASKER
This did work for me.
E.G: In the applicationHost.config file. (%WINDIR%\System32\inetsrv
Above the </configuration> tag, something like:
<location path="website-name/path-to
<system.webServer>
<directoryBrowse enabled="true" />
</system.webServer>
</location>