Disable Visual Studio Web Server Directory Browsing

I am using Visual Studio, built into the web server for testing, and the EPiServer application. When I have an application running in IIS, if I get to the root of the virtual directory, EPiServer will take over and launch the defaul page. Using the Visual Studion server (which I do for license reasons with the SDK), it always gives me the Directory List view of my site. Does anyone know how to configure this web server to not allow directory listing / browsing?

Additional information: This problem seems to affect the root of the visual studio web server (I will call it cassini here). For example, if I started the site with localhost: 6666, then what I will find is that localhost: 6666 / en / will work fine, and VPP EPiServer will know what it is doing. If I use localhost: 6666 /, then VPP never hits (or, as a result, seams). It seems to me that when the cassini root is hit, it checks if the page exists (which it does not have, since I do not have a default value). If he decides that the page does not exist, then it serves the directory list, not 404. The first thing to do for me is to open the directory lookup in cassini and then see why VPP is not working correctly.

So, I suppose the bottom line is: is there a way to change these settings in Cassini when Visual Studio starts everything?

(EPiServer may be a red herring, but just in case it is CMS version 5)

Further update I managed to get a source for Cassini 3.5 and gave it a whirlwind. 3.5 works just fine and behaves like IIS in this case. That is, the absence of a document by default does not lead to a list of directories, rather, if HTTP handlers allow, and then EPiServer does the rest! So the question is, can I achieve the same result with Visual Studios on a web server?

+3
source share
4 answers

, ~/Default.aspx. , cassini , '/'. , , : -)

+3

, EPiServer?


: , /en/ , , Microsoft . , . , http://connect.microsoft.com/visualstudio/. EPIServer, URL- ..

, /en, , .

, , . , , , , .

0

EpiServer . , , VS ( Cassini), ( -), , , , foo.aspx.

, cassini/VS - cassini ( VS) , , . , IIS .

0

EPiServer ? EPiServer Manager?

In the configuration, there have always been differences between starting a site at the root of the host name or in the form of a (virtual) directory.

Check the site settings block in web.config and make sure that you have default.aspx in the root of the project.

0
source

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


All Articles