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

I have it like my web.config in my images folder:

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

But not the bones.

Any help?

+6
source share
1 answer

In IIS 7 and above, you can use the following.

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

In IIS 6, you will have to configure it through IIS Manager.

+12
source

Source: https://habr.com/ru/post/897110/


All Articles