Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

iis

web-config

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?

like image 456
Shamoon Avatar asked Sep 11 '11 21:09

Shamoon


1 Answers

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.

like image 92
scartag Avatar answered Oct 23 '22 01:10

scartag