This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: x-forward-for
Message |

Joined: 27 July 2011
Posts: 1
Posted: 27 July 2011 at 7:34am


I need your help.

I've installed ISAPI on TMG, Version 2.15.78
On the Reverse Proxy we are publishing a website (IIS Server). The webserver behind the TMG logs only the TMG IP. I like to log the original IP on the IIS Webserver. It is possible with the XFF http header, am i right?. But I did not find any examples to doing this with REGEX in the ISAPI. Can someone helps me? Give me an example? Thank you very much.

Back to Top
Moderator Group

Joined: 15 August 2002
Location: Russian Federation
Posts: 8119
Posted: 29 July 2011 at 7:41am

Try this rule:
RewriteCond %REMOTE_ADDR (.+)
RewriteHeader X-Forwarded-For: (?!.).* $1
Back to Top

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum