« Previous Next »

Thread: How to configre ARR as reverse proxy for tomcat?

Last post 02-07-2009 1:20 PM by wonyoo. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 02-05-2009, 4:30 AM

    How to configre ARR as reverse proxy for tomcat?

    Hi All,

     I am new to II7 and ARR, could somebody give me a guide about how to configure how to configre ARR as reverse proxy for tomcat?

     What I want to do is as follow

    1. User type http://www.hostname.com

    2. ARR change to http://www.hostname.com:8080

    3. Tomcat receive the request from port 8080, process and return the response

    4. ARR change the response from http://www.hostname.com:8080 to http://www.hostname.com

    5. User receive response http://www.hostname.com not the URL with 8080

     

    I tried to configre ARR according to
    http://blogs.iis.net/wonyoo/archive/2008/07/09/application-request-routing-arr-as-a-reverse-proxy.aspx
    However, I always got the url with port 8080.
    I don't have this issue when I was using apache mod_proxy module.

    Do I miss something important?
    Please kindly help.

    Thank you very much.

    Best Regards,
    Elvin

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

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: How to configre ARR as reverse proxy for tomcat?

    Have you tried configuring reverseRewriteHostInResponseHeaders to true on ARR?  Note that this will still only fixup urls in headers (eg redirection), but not in html response.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 02-05-2009, 8:04 PM In reply to

    Re: How to configre ARR as reverse proxy for tomcat?

    Yes, I have set reverseRewriteHostInResponseHeaders to true in proxy option in ARR.

    But the URL still have the port 8080 shown.

    Could you please kindly tell me how to configure the ARR so that no 8080 in eventually shown to the user?

    Thank you very much,
    Best Regards,
    Elvin

  • 02-07-2009, 1:20 PM In reply to

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

    Re: How to configre ARR as reverse proxy for tomcat?

    Elvin

    Setting the reverseRewriteHostInResponseHeader should've fixed the problem. 

    Note that there are two different locations for this attribute; there is one on what we call "server level" and the other on the "server farm" level.

    If you are creating a server farm to redirect, then you will need to set the attribute at the server farm level.  Likely, if you are using ARR as a reverse proxyw without a server farm, then you will need to set this attribute at the server level.

Page 1 of 1 (4 items)
Microsoft Communities