« Previous Next »

Thread: IIS loadbalancer question

Last post 10-12-2009 10:04 PM by anilr. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 10-05-2009, 8:30 AM

    IIS loadbalancer question

    I am going to setup an IIS7 instance behind a load balancer.
    I would like all apps (PHP/ASP/Asp.net) to be able to see correct REMOTE_ADDR, and not the one of loadbalancer.

    Later on I'll use ARR, and would like to ensure the problem doesn't occur there too.

    Please advise.

  • 10-05-2009, 11:38 AM In reply to

    Re: IIS loadbalancer question

    This is really a function of the load balancing device, not IIS.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 10-05-2009, 9:23 PM In reply to

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

    Re: IIS loadbalancer question

    You have to configure your load-balancer to send the client ip to your backend server in a custom header (normally X-Forwarded-For) and you need to run some code on the backend server to make IIS use that custom header as the client-ip - see ARR Helper for an example.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 10-06-2009, 5:45 AM In reply to

    Re: IIS loadbalancer question

    Anil, Thanks for your response. It is exactly what I'm looking for.

    Being an admin, and not a developer, can you guide me how to do it without ARR for now?
    If not,  please point me in correct direction, even if a code.

    I'm concerned, as I've seen some custom ISAPI attempting to add a function to IIS, ends up messing up with other features like logging.

  • 10-12-2009, 10:04 PM In reply to

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

    Re: IIS loadbalancer question

    The ARR Helper module is not dependent on ARR - it can use the correct header sent by any load-balancer and fix it up in IIS.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
Page 1 of 1 (5 items)
Microsoft Communities