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
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: x-forward-for Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jjru
Newbie
Newbie


Joined: 27 July 2011
Online Status: Offline
Posts: 1
Posted: 27 July 2011 at 7:34am | IP Logged Quote jjru

Hi

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 View jjru's Profile Search for other posts by jjru
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8119
Posted: 29 July 2011 at 7:41am | IP Logged Quote Lexey

Try this rule:
RewriteCond %REMOTE_ADDR (.+)
RewriteHeader X-Forwarded-For: (?!.).* $1
Back to Top View Lexey's Profile Search for other posts by Lexey
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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