Using Default Document with Forms Authentication
Posted
by John Rabotnik
on Server Fault
See other posts from Server Fault
or by John Rabotnik
Published on 2010-06-16T17:48:30Z
Indexed on
2010/06/16
17:53 UTC
Read the original article
Hit count: 308
I have a site hosted on IIS7 with a default document specified as default.aspx. This works fine but my app uses Forms Authentication and I want to disable Anonymous Authentication completely. When I do disable anonymous authentication for everything except the login page, everything works fine but the default document setting stops working.
With Anonymous authentication switched on if I visit http://mysite I get passed to http://mysite/default.aspx (which then redirects to the login page if the user hasn't already logged in)
If I disable anonymous authentication (leaving only forms based auth enabled) and I visit http://mysite I get a permission denied page from IIS. Yet, if I visit http://mysite/default.aspx directly then the site works fine.
I just want to disable anonymous authentication and have http://mysite go to http://mysite/default.aspx. Any ideas would be greatly appreciated.
© Server Fault or respective owner