Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 799245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:05:46+00:00 2026-05-14T23:05:46+00:00

ASP.net MVC How to run multiple instances of the same app at the same

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T23:05:46+00:00Added an answer on May 14, 2026 at 11:05 pm

    If they use separate databases, this implies to me that they are completely separate sites. The fact that they are the same codebase is irrelevant.

    Deploy each one to

    /website/sub1
    /website/sub2
    

    Yes, when you release new code you will need to do it to each folder, but this is always a deployment problem, dont mangle your code or have some external config to compensate.

    Write a deployment script in ruby/powershell/whatever if its a major headache

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to develop my first ASP.NET MVC web app and have run into
I'm optimizing my ASP.net MVC 4 website. I'm currently using run time bundling to
I have a ASP.NET MVC app and when I run it, it loads my
My ASP.Net MVC application has to connect to multiple databases at run time. I
How to remove disabled attribute from textbox in asp.net MVC during run time In
I have been using Telerik Charts with Asp.net mvc and I have run into
I keep getting this error when I run my web app (asp.net mvc) in
I am building an ASP.Net MVC app that will run on a shared hosting
I try to run ELMAH with my ASP.NET MVC 2 project but have some
I am building an ASP.NET MVC 3 app which will run in Azure. Everything

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.