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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:34:45+00:00 2026-06-09T03:34:45+00:00

Boiling this down to the simplest possible rule: <rule name=Reverse Proxy stopProcessing=true> <match url=^external/(.*)

  • 0

Boiling this down to the simplest possible rule:

      <rule name="Reverse Proxy" stopProcessing="true">
          <match url="^external/(.*)" />
          <action type="Rewrite" url="http://some-site/{R:1}" />
      </rule>

(“Enable Proxy” is checked in the ARR Server Proxy settings at the server level).

The above rewrite rule works fine in a very simple test app with a web.config containing the section, it works fine in a web forms app, but if I put the same rule into an MVC3 app (on the same machine, so identical config for IIS higher up) it never has any effect; the request flows through.

if it’s just a rewrite (and not a reverse proxy) it works OK, e.g.,

          <rule name="rewrite to internal" stopProcessing="true">
              <match url="^internal/(.*)" />
              <action type="Rewrite" url="different-internal/{R:1}" />
          </rule>

…is fine.

I can get the reverse proxy rule to work if I add

        routes.IgnoreRoute("external/{*pathInfo}");

in the Global.asax.cs class, so that my request for external/* doesn’t hit the default controller, but I don’t understand why. I think the URL rewrite module kicks in way before the Routing (see http://learn.iis.net/page.aspx/496/iis-url-rewriting-and-aspnet-routing/) so I’d expect there not to be a conflict between them.

Is the Routing module adding in “virtual” rewrite rules to the URL rewrite module, that are overriding my declared rewrite rules?

  • 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-09T03:34:48+00:00Added an answer on June 9, 2026 at 3:34 am

    I had this exact same issue and it took me the entire day to find the solution.

    1. Find: the ServoceModel tag in your Web.config file and add the serviceHostingEnvironment code as seen below:

            <system.serviceModel>
              <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
            </system.serviceModel>
      

    This will allow routes to be passed through to IIS to handle it.

    One more tip, I recommend anyone having routing issues with their MVC projects to install Remote Debugger via NuGet. This will tell you what routes are being activated when.

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

Sidebar

Related Questions

This ends up boiling down to the simple question of why does Console.WriteLine(asdfasdf) not
I have created a really basic project (Make) like this: (ede-proj-project zrm :name zrm
My explanation below rambles, boiling down, is there a way I can add a
I have a django model like this: class Player(models.Model): name = models.CharField() batting =
i'm builing this php script which displays a given folder 's children folders and
So, I've come back to ask, once more, a patterns-related question. This may be
I have a list like this: <ul> <li id=adm-thumb onclick=javascript:addBanner('bowling.jpg');> <div class=adm-tick></div> <img src=img/banners/bowling.jpg
What I want to do is something like this: function registerUser($username, $password){ $this->db->insert('tblUsers', array('username'=>$username,
I've been pretty good at fixing my Xcode Obj-C errors, but this one has
This may be a naive question, but does RSpec's testing DSL violate the law

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.