I deployed my asp.net web app to IIS and now when I go to http:\servername\mywebsite I get the directory listing page.
What would I have to configure to make the launching page be http:\servername\mywebsite/login.aspx ? Please keep in mind I am not using default.aspx or home.aspx
When you send a request to IIS that does not include a page name, IIS uses its list of
Default Documentsto see what file it should display.As standard
default.aspxwill be added to this list, but if you’re not usingdefault.aspxyou must add in which file you actually want to be used.Here is a guide for setting up default documents in IIS6
And here is a guide for setting up default documents in IIS7
As far as making the launching page go to
/mywebsite/login.aspxthere are a number of possibilities.If you use ASP.NET authentication, then you can setup via the web.config file to redirect to that page should a non-authenticated user go to the site.
Or you could use Url ReWrite for IIS – although I have limited experience with it, and do not know if you can write rules that take into account authentication.