Disable Visual Studio Web Server Directory Browsing

你。 提交于 2019-12-01 23:16:06

Make sure you have a ~/Default.aspx file. It won't render, but it's needed in cassini for the virtual path providers to get a chance to handle the request for '/'. Of course, if you make it anyway you might as well use it for the start page :-)

Even if you could get the server to not show the directory listing, could you get EPiServer to take over?


EDIT: From comments The fact that it works with /en/ makes me think this is something that Microsoft could fix. I suggest you ask the vendor if they have a workaround. If they do not, then please create a suggestion at http://connect.microsoft.com/visualstudio/. Be sure to specify details about EPIServer, URL to the vendor, etc.

Be clear that it works with /en, but you want a setting permitting it to work at the root.

Once you create the suggestion, please edit your question to include the link to the suggestion you create. That way, others reading your question can vote on how important they think this is.

The EpiServer part confuses me. However, if you are asking how to set the default page for the VS development server (based on the Cassini code), you're expected to do that in the project properties (right click on web project), Web, Start Action, Specific Page, foo.aspx.

I suspect the cassini/VS development server doesn't have a default page feature-- the source code for the cassini server (the ancestor of the VS development server) is on the web and you can check that and add a default page by building a custom version. And it doesn't have a very long list of other features that IIS has.

Which EPiServer version are you running? Did you install it using EPiServer Manager?

There has always been some differences in the configuration between running the site at the root of a host name or as a (virtual) directory.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!