One application instance for two domain name

Posted by dervlap on Stack Overflow See other posts from Stack Overflow or by dervlap
Published on 2010-06-17T13:21:43Z Indexed on 2010/06/17 13:43 UTC
Read the original article Hit count: 145

Hello,

I have two web applications in ASP.NET which are quite the same (same business logic, same DAL, same DB scheme but different instance).

The only thing that I need to change is the design (logo, color,...) and the text (global and local resource) to adress two separate business sector. We cannot "subdomain" the application because we need the two app "seems to be" independant.

Is it a good idea to run only one instance for the 2 web applications.

For example :

I will have 2 hostnames : mycompagny.com and mycompagny2.com and I will put an HTTP Module which will set a string which will be propagated in my application like 'company' and 'company2'. I will instanciate the dal only once but the connection string will change depending on the string 'company' or 'company2'.

Any pros and cons ? Any other alternatives ?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about web-development