Re: [users@httpd] mod_rewrite: Overwriting REMOTE_ADDR with HTTP_X_FORWARDED_FOR

2005-06-24 Thread Scott Gifford
Werner Schalk <[EMAIL PROTECTED]> writes: > Hi, > > well of course I could use HTTP_X_FORWARDED_FOR instead of REMOTE_ADDR in all > my scripts but the problem is that I have some customers and their scripts > are relying on REMOTE_ADDR so I don't want to ask them to change their > scripts... A

Re: [users@httpd] mod_rewrite: Overwriting REMOTE_ADDR with HTTP_X_FORWARDED_FOR (follow-up)

2005-06-24 Thread Werner Schalk
Hi, just a quick follow-up: Thanks to Thomas Eibner, it got it working: > I believe this module does it already: > http://stderr.net/apache/rpaf/ Yeah! All the best and thanks again, Werner. - The official User-To-User suppor

Re: [users@httpd] mod_rewrite: Overwriting REMOTE_ADDR with HTTP_X_FORWARDED_FOR

2005-06-24 Thread Werner Schalk
Hi, well of course I could use HTTP_X_FORWARDED_FOR instead of REMOTE_ADDR in all my scripts but the problem is that I have some customers and their scripts are relying on REMOTE_ADDR so I don't want to ask them to change their scripts... Thanks. Bye, Werner -

Re: [users@httpd] mod_rewrite: Overwriting REMOTE_ADDR with HTTP_X_FORWARDED_FOR

2005-06-24 Thread Scott Gifford
Werner Schalk <[EMAIL PROTECTED]> writes: > Hi, > > well apologies for bringing this issue up again but none of the suggested > solutions actually does work. I tried the following output filter: Why do you need to solve it exactly this way? Can't you instruct your code or your Apache to simply

Re: [users@httpd] mod_rewrite: Overwriting REMOTE_ADDR with HTTP_X_FORWARDED_FOR

2005-06-24 Thread Joshua Slive
On 6/24/05, Werner Schalk <[EMAIL PROTECTED]> wrote: > Hi Joshua, > > thanks for your help. In your last email you agreed upon the suggestions David > Adams had (e.g. using sed a an output filter). I have tried this and it does > not work. Now I understand your confusion. His suggestion was to p

Re: [users@httpd] mod_rewrite: Overwriting REMOTE_ADDR with HTTP_X_FORWARDED_FOR

2005-06-24 Thread Werner Schalk
Hi Joshua, thanks for your help. In your last email you agreed upon the suggestions David Adams had (e.g. using sed a an output filter). I have tried this and it does not work. Thanks anyway. All the best & bye, Werner. - The

Re: [users@httpd] mod_rewrite: Overwriting REMOTE_ADDR with HTTP_X_FORWARDED_FOR

2005-06-24 Thread Joshua Slive
On 6/24/05, Werner Schalk <[EMAIL PROTECTED]> wrote: > Hi, > > well apologies for bringing this issue up again but none of the suggested > solutions actually does work. I'm not sure how many ways I can say this: There is no way to do what you want with the included apache modules, and I don't kno

Re: [users@httpd] mod_rewrite: Overwriting REMOTE_ADDR with HTTP_X_FORWARDED_FOR

2005-06-24 Thread Werner Schalk
Hi, well apologies for bringing this issue up again but none of the suggested solutions actually does work. I tried the following output filter: ExtFilterDefine proxy_hack mode=output intype=text/html outtype=text/html cmd="/bin/sed 's/HTTP_X_FORWARDED_FOR/REMOTE_ADDR/g'" Enabling this output

Re: [users@httpd] mod_rewrite: Overwriting REMOTE_ADDR with HTTP_X_FORWARDED_FOR

2005-06-24 Thread Joshua Slive
On 6/24/05, Werner Schalk <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to use mod_rewrite to overwrite the environment variable > REMOTE_ADDR with the value of HTTP_X_FORWARDED_FOR because I am using Apache > 2 in a reverse / forward proxy scenario where the original IP address of the > clien

[users@httpd] mod_rewrite: Overwriting REMOTE_ADDR with HTTP_X_FORWARDED_FOR

2005-06-24 Thread Werner Schalk
Hi, I would like to use mod_rewrite to overwrite the environment variable REMOTE_ADDR with the value of HTTP_X_FORWARDED_FOR because I am using Apache 2 in a reverse / forward proxy scenario where the original IP address of the client is not passed on to the internal Apache server: Inet -> Ser