Alex Rivera | Logout

How do I enable directory listing in a specific IIS folder via web.config?

Asked 2011-09-11T21:07:18.737
14

I have this as my web.config in my images folder:

<configuration>
   <system.webServer>
    <directoryBrowse enabled="true" />
   </system.webServer>
</configuration>

But no dice.

Any help?

Edit
Report

1 Answer

20

On IIS 7 and above you could use the following.

   <?xml version="1.0" encoding="UTF-8"?>
         <configuration>
                <system.webServer>
                    <directoryBrowse enabled="true" />
                </system.webServer>
        </configuration>

On IIS 6 you'll have to configure it via IIS Manager.

answered 2011-09-11T21:12:21.010

Your Answer