« Previous Next »

Thread: Reverse proxy for 3 internal web servers

Last post 06-20-2009 11:22 PM by wonyoo. 7 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (8 items)

Sort Posts:

  • 05-13-2009, 3:45 PM

    Reverse proxy for 3 internal web servers

    Hi,

     Sorry for my bad english (i'm french :))

     I try to figured out how to setup this famous ARR for reverse proxy for three internal web servers.

     I'd like to have this configuration

    Wan (www.domaine.com: 80)--> Reverse proxy (IIS7 with ARR module installed)  --> serveur1 :80

    Wan (inside.domaine.com:80) --> Reverse proxy (IIS7 with ARR module installed) --> serveur2 :80

    Wan (mail.domaine.com:443) --> Reverse proxy (IIS7 with ARR module installed) --> serveur3 :443

     Does ARR work for that ? Where can i find all good documentation to realize this configuration ???

    I'm totally new on windows 2008 servers and IIS7... used to work with 2003 and IIS 6....

     All help will be appreciated !

     Thanks !

  • 05-14-2009, 8:44 PM In reply to

    Re: Reverse proxy for 3 internal web servers

    ARR is for application routing, what you really want is a proxy server such as ISA Server.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 05-16-2009, 12:24 AM In reply to

    • PascalN
    • Not Ranked
    • Joined on 02-02-2009, 5:30 AM
    • Posts 5

    Re: Reverse proxy for 3 internal web servers

    Hello,

    Yes you can do that with ARR

    In IIS manager click on your server node (not a web site) in the left tree and from there open "Application Request Routing"

    On that page check the "Enable proxy" check box at the top.  Still on that page, in the "Proxy Type" section at the bottom make sure the "Use URL Rewrite to inspect incoming requests" is checked and add serveur1 in the Reverse proxy text box. Click Apply to save your changes.

    This will create a URL rewrite rule that will redirect all incoming requests to serveur1.

    Now we are going to modify this rules and add other rules for the other servers.

    Click on your server node again and open "URL Rewrite".  There you should see a rule called ARR_server_proxy.  This is the basic rule that was created previously.

    Select that rule and click edit.  Everything on that page should be good to route requests to serveur1 but it's missing the condition to route only the requests coming in for  www.domain.com.  So add a new condition with the following input values

    Condition input: {HTTP_HOST}

    Check if input string: Matches the pattern

    Pattern: www.domain.com

    Now click ok and Apply to save your rule.

    This rule will now route every requests for www.domain.com to serveur1.

    From there you should go back to the rules page and add new rules identical to this one but with conditions for your other domain names and the other servers.

     

    You can check at the bottom of this page to see all of the HTTP headers and server variables you can use in conditions.

    http://learn.iis.net/page.aspx/510/achieving-high-availability-and-scalability---arr-and-hardware-load-balancer/

    Bonne chance!

     

     

     

  • 05-18-2009, 2:12 PM In reply to

    Re: Reverse proxy for 3 internal web servers

    You're excellent !

     Thanks so much, it's exactly what i needed !

     I still have a problem with OWA 2003 published behind ARR, but i'll try try and try !!!

     Thanks again (and if you have the owa solution i'll take it ! !)

  • 05-18-2009, 5:24 PM In reply to

    • jdoug
    • Not Ranked
    • Joined on 05-18-2009, 7:21 PM
    • Posts 1

    Re: Reverse proxy for 3 internal web servers

    I want to do something similar but also being new to IIS and ARR having problems getting it to work.

    Would like to configure an IIS server as a reverse proxy such that I can access internal servers from it.

    For example how can I configure it such that

    http://www.iisserver.mycompany.com//internal1 would route to http://internal1.mycompany.com

    and

    http://www.iisserver.mycompany.com/internal2 would route to http://internal2.mycompany.com

    as well as rewrite URLs in the responses. I seemed to make it work for one server but then I screw it up trying to add another and then can't even get it working for the 1 server case again.

    Any help would be appreciated.

  • 05-19-2009, 12:11 PM In reply to

    • PascalN
    • Not Ranked
    • Joined on 02-02-2009, 5:30 AM
    • Posts 5

    Re: Reverse proxy for 3 internal web servers

    You can do this by doing the same as what's above but you wont need any conditions.  Instead you should use the pattern in the Match URL section of your rule

    RequestedURL: Matches the pattern

    Using: Wildcard

    Pattern: http://www.iisserver.mycompany.com/internal1/*

    In the Action section you should have something like this

    Action Type: Rewrite

    Rewrite URL: http://internal1.mycompany.com/{R:0}

    And finally you can add another rule for your internal2 server

     

  • 05-20-2009, 4:22 AM In reply to

    Re: Reverse proxy for 3 internal web servers

    Jdoug, everything is explained in PascalN post !

    It's exactly what you need !

  • 06-20-2009, 11:22 PM In reply to

    • wonyoo
    • Top 50 Contributor
    • Joined on 12-15-2007, 6:46 PM
    • Posts 125

    Re: Reverse proxy for 3 internal web servers

    I believe the examples shown in this forum post would also be helpful in understanding how different rules can be used for routing requests: http://forums.iis.net/t/1158459.aspx

    Let me know if you have further problems.

     

Page 1 of 1 (8 items)