ASP.net MVC How to run multiple instances of the same app at the same time in different subdomains?
Posted
by basilmir
on Stack Overflow
See other posts from Stack Overflow
or by basilmir
Published on 2010-05-18T09:22:18Z
Indexed on
2010/05/18
9:51 UTC
Read the original article
Hit count: 220
ASP.net MVC
How to run multiple instances of the same app at the same time in different subdomains?
I have a dozen or so subdomains.
sub1.website.com sub2.website.com
and the folder structure like this
\website\sub1 \website\sub2
If i need to run the same app for all of the subdomains, what would be the best appoach?
Host is in the root \website\ and have it figure out where to look based on the "user"? (i imagine i need to implement de logic in the code)
OR
Just copy the app in each of the subdomains, and have the app "not knowing" that it is actually an instance? (this would mean that when i update the app, i have to copy it everywhere)
What other approaches are there to this kind of issue? Each app will use a different database name so that will need to we coded in somekind of external file.
© Stack Overflow or respective owner