Groups | Blog | Home
all groups > asp.net security > september 2005 >

asp.net security : Multiple sites on same server - authentication problem


Richard Marr
9/1/2005 12:00:00 AM
Hi, hope you can help

I have multiple asp.net sites running on the same physical server,
each with its own sql server database. There is a root folder on the
server called 'websites', and under that one folder for each site, eg
siteA, siteB etc. Each site folder contains its own web.config file at
the root level.

I am using forms authentication, however the problem is that no matter
which site a user attempts to log in to they are presented with the
*first* site's login page, so a login to siteB gets presented with the
login page for siteA.

I've a feeling I must have missed something stupid, but it's eluding
Richard Marr
9/1/2005 12:00:00 AM
I think I may have sorted this now, thanks - it seems the problem was
the SSL certificate; at the moment there is only one SSL certificate
on the server, and that is configured for siteA. When I attempt to log
in to siteB that by definition calls for a secure page, and so
redirects to the default page associated with the SSL certificate. The
solution, therefore, is to get a new SSL certificate for each site. If
I temporarily take out the https for each of the pages concerned it
works as expected.

On Thu, 01 Sep 2005 07:37:03 -0700, Dominick Baier [DevelopMentor]
[quoted text, click to view]
Dominick Baier [DevelopMentor]
9/1/2005 7:37:03 AM
Hello Richard,


is every "site" marked as an application in IIS?

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

[quoted text, click to view]


AddThis Social Bookmark Button