REMOTE_ADDR Problem on WebFarm

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 3
Joined: 25 Feb 2014, 09:13

REMOTE_ADDR Problem on WebFarm

25 Feb 2014, 09:17

Hi there

i'm trying to get the clientIP on my frontservers
so i have to set REMOTE_ADDR to the value of HTTP_X_FORWARDED_FOR

now REMOTE_ADDR holds the ip of our LoadBalancer :-)

is this possible?

please help

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: REMOTE_ADDR Problem on WebFarm

25 Feb 2014, 11:42

Hello,

Can you shed some light on your overall configuration?
Did you make loadbalancer using Helicon means? If so, it should work.
What rules do you have? What is the schema?

Regards

User avatar
Posts: 3
Joined: 25 Feb 2014, 09:13

Re: REMOTE_ADDR Problem on WebFarm

26 Feb 2014, 04:40

Load balancer: ARR/Microsoft UrlRewrite
front servers: Helicon isapi rewrite 3

we lift a big website (helicon rewrite) with thousands of rules to a webfarm
we need the clientIP on the front servers

so we need to know if its possible to overwrite server variables
otherwise i have to migrate all Rules to UrlRewrite, there this is possible
Code: Select all
        <rule name="IP" patternSyntax="Wildcard">
                    <match url="*" />
                    <conditions trackAllCaptures="true">
                        <add input="{REMOTE_ADDR}" pattern="xxx.xxx.xxx.xxx" ignoreCase="false" />
                    </conditions>
                    <serverVariables>
                        <set name="REMOTE_ADDR" value="{HTTP_X_FORWARDED_FOR}" />
                        <set name="REMOTE_HOST" value="{HTTP_X_FORWARDED_FOR}" />
                    </serverVariables>
                    <action type="Rewrite" url="{R:0}" />
                </rule>

but a hell of work
i rather would stay with your product

regards

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: REMOTE_ADDR Problem on WebFarm

26 Feb 2014, 12:35

As far as I understood you want the rule provided to be transferred to ISAPI_Rewrite?
Unfortunately, ISAPI filters can't change server variables. HOwever, HeliconApe can. Is it IIS7?

Regards

User avatar
Posts: 3
Joined: 25 Feb 2014, 09:13

Re: REMOTE_ADDR Problem on WebFarm

27 Feb 2014, 04:16

thanks for your help
but we are rewrite the rules to URLrewrite

pls close this thread

regards

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 0 guests