REMOTE_ADDR Problem on WebFarm
5 posts
• Page 1 of 1
REMOTE_ADDR Problem on WebFarm
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
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
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: REMOTE_ADDR Problem on WebFarm
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
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
Re: REMOTE_ADDR Problem on WebFarm
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
but a hell of work
i rather would stay with your product
regards
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
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: REMOTE_ADDR Problem on WebFarm
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
Unfortunately, ISAPI filters can't change server variables. HOwever, HeliconApe can. Is it IIS7?
Regards
Re: REMOTE_ADDR Problem on WebFarm
thanks for your help
but we are rewrite the rules to URLrewrite
pls close this thread
regards
but we are rewrite the rules to URLrewrite
pls close this thread
regards
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests