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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:13:51+00:00 2026-05-24T23:13:51+00:00

We need to be able to run two versions of one ASP.net web application

  • 0

We need to be able to run two versions of one ASP.net web application on the same intranet server and port number, but with one mapped to / and the other mapped to /experimental (not real names, but close enough).

C:\inetpub\wwwroot\Version1 => http://test1.organization.com/
C:\inetpub\wwwroot\Version2 => http://test1.organization.com/experimental

The first URL has already been exposed to some beta users and therefore needs to be kept somewhat stable. The second will contain experimental code that only users going to /experimental will see. We don’t have the option of using a different server or a different port.

I’ve achieved this in the past by having / mapped to a site under Sites in IIS, then adding the second site as an application underneath it, and aliasing it to /site2.

Server
Sites
Default Web Site <= physical path mapped to first version and /
/ Application1 <= nested application mapped to second version and /experimental

However, this seems sloppy. Would it be cleaner to do this with a rewrite rule or with ARR? If so, how?

  • 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-24T23:13:52+00:00Added an answer on May 24, 2026 at 11:13 pm

    A combination of ARR and rewrite rules will solve this nicely. Here are the steps to follow:

    1. Download and install ARR http://www.iis.net/download/ApplicationRequestRouting
    2. In IIS Manager, select your machine in the Connections pane, double-click the Application Request Routing feature in the IIS section, click on the “Server Proxy” link in the Actions pane, then check the “Enable proxy” checkbox and choos the Apply action.
    3. Change the bindings of your two existing websites, for instance, bind the Released website to port 81, and the Experimental website to port 82.
    4. Create a new website and app pool, and bind it to http:*:80:. Name it “Default Web Site”. Point its physical path to “%SystemDrive%\inetpub\DefaultWebSite”
    5. Create a web.config file for the “Default” website, and write your routing rules there:

      <rules>
          <rule name="Reverse Proxy for Experimental" stopProcessing="true">
              <match url="^.*/experimental/.*" />
              <action type="Rewrite" url="http://{HTTP_HOST}:82/{R:0}" />
          </rule>
          <rule name="Reverse Proxy for Release" stopProcessing="true">
              <match url=".*" />
              <action type="Rewrite" url="http://{HTTP_HOST}:81/{R:0}" />
          </rule>
      </rules>
      
    6. You may have to fiddle somewhat with your rewrite rules, you can experiment using the URL Rewrite Module applet on IIS, and read more about it here: http://learn.iis.net/page.aspx/500/testing-rewrite-rule-patterns/ For further help be sure and browse Ruslan Yakushev’s blog: http://ruslany.net/

    This will give you three completely separate websites, accessibly through a single facade on port 80 (though of course you can hit each website directly on port 81 and 82 if you need to: http://localhost:81/default.aspx, for example).

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

Sidebar

Related Questions

I need to run a web application in IE so it at least looks
I'm building a Flex application that will need run under two different deployment scenarios:
I have two same web projects(Java) with different name in my workspace. One is
I need to be able to run RegLoadKey() on a remote machine, and it
I need to be able to run an Oracle query which goes to insert
What exactly does a mobile need to be able to run JavaFX? Can it
I have an app that normal users need to be able to run, but
In order to create the proper queries I need to be able to run
I need to be able to determine at run time what compilation options were
I need to be able to specify a command to run when the SelectionChanged

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.