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 8081749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:50:09+00:00 2026-06-05T16:50:09+00:00

I want to deploy same web application to multiple sites with different domains and

  • 0

I want to deploy same web application to multiple sites with different domains and different web ui and database.

In my ServiceDefinition i have this:

<Sites>
  <Site name="Web">
    <Bindings>
      <Binding name="Endpoint1" endpointName="Endpoint1" />
    </Bindings>
  </Site>
  <Site name="Web2" physicalDirectory="..\WebRole1">
    <Bindings>
      <Binding name="Endpoint1" endpointName="Endpoint1" />
    </Bindings>
  </Site>
</Sites>

How can I load different css/images/js and database for each site?

  • 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-06-05T16:50:10+00:00Added an answer on June 5, 2026 at 4:50 pm

    Based on the information you provided you could be asking two very different things.

    The Service Definition you provided you are actually creating two separate websites and they may have nothing in common and they are launched from two separate folders. When you use multiple sites in Service Definition, your objective is to have multiple different sites which may or may not share any code in between. And based on the hostheader you can decide which physical folder content will be displayed. Here is a great example on how to use multiple websites with Windows Azure Web Role.

    As you have also mentioned that you want to load different css/images/js, it is possible that you just want one single website however your have different resources depend on different header. This can be done very easily in one single website by parsing the hostheader in URL during page load event (or globally), and then create a based path, redirecting to a specific resources folder which contains all of your static resources. And when you deploy your website, you can include all the static resources in different folders with identical file structure. You might not need multiple websites for such objective.

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

Sidebar

Related Questions

I basically want to be able to deploy multiple versions of the same EAR
Is it possible to deploy multiple roles in the same instance? I have three
I have a clickonce application and i want to deploy 2 versions of the
I want to deploy the release version of my application done in C#. When
I want to deploy an application with a license attached. However, I want to
I want to deploy a installer package to my customers. My application is basically
We want to deploy our application on Tomcat, WebLogic, WebSphere and JBoss. Our application's
Very simple Winforms application I want to deploy manually. Can all the referenced assemblies
I have deployed a web service with Jax-ws that use a database for storing
I have a web application running in a GlassFish 3.1 service on Windows 7

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.