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

I am building an ASP.Net MVC app that will run on a shared hosting
I'm developing an ASP.NET MVC 2 app using Windows Authentication. When I run it
I have some processes that run without an HttpContext in an ASP.NET MVC web
I have an ASP.NET MVC application, which seems to run OK on my machine,
I have joined a team developing an ASP.NET MVC version 1 application. I run
I'm trying to convert an ASP .NET MVC 2 app to run on nginx/mono
I'm following the ASP.Net MVC TaskList example video and on clicking Run in Visual
Is there a way that I can run a ASP.NET MVC Project on godaddy.com
ASP.NET MVC routes have names when mapped: routes.MapRoute( Debug, // Route name -- how
I receive the following error when trying to run my ASP.NET MVC application: The

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.