Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable Directory browsing by default on IIS Express

Cassini (Visual Studio development web server) by default enables directory browsing, how can I enable directory browsing on IIS Express by default? (I don't want to have a separate configuration for each project I have?

like image 986
Ahmed Magdy Avatar asked Dec 17 '11 09:12

Ahmed Magdy


People also ask

What is directory browsing in IIS?

Directory browsing allows the contents of a directory to be displayed upon request from a web client. If directory browsing is enabled for a directory in IIS, users could receive a web page listing the contents of the directory.

What is web directory browsing?

What is directory browsing? Directory browsing is when you access a website using a web browser and instead of a webpage, you see a list of files and folders. This happens because the web server that hosts your site can not only display web pages. But also the content of your web directories and other files.


1 Answers

  1. Go to Web.config file of your project.

  2. Add the below two tags in <system.webServer> tag in web.config

<directoryBrowse enabled="true" />

<modules runAllManagedModulesForAllRequests="true" />

like image 122
Moni Avatar answered Sep 17 '22 02:09

Moni