Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Getting the original IP

From: Daniel Lopez <D.Lopez(at)uib.es>
Date: Mon Jan 15 2001 - 12:20:04 EST


Hi,

I hope this is not a FAQ but as the list told me there's no FAQ available yet, here I go:
.- I'm using mod_proxy to centralise the access to my various applications through the standard port. I mean, I have various applications, each running in a different port because of maintenace reasons, and I'm using mod_proxy to redirect requests to the appropriate port this way:

ProyPass /myApp/ http://myhost.es:thePort/myApp/ ProyPassReverse /myApp/ http://myhost.es:thePort/myApp/ ProxiVia full

My problem is that, due to authentication requirements, I would like to be able to get which is the original IP that made the request: That is: Host x.x.x.x makes a request to http://myhost.es/myApp/whatever.app then mod_proxy translates this request to http://myhost.es:thePort/myApp/whatever.app but if I try to recover the REMOTE_HOST in the whatever.app program, I get myhost.es, not x.x.x.x. I understand the reason why that is so, but is there any way (for example an extra http header...) from where I can get the original remote host's IP? I already tried checking the headers but I didn't find anyone with this info.
Should I use other options to do that? mod_rewrite? Please send a copy of the answer to me directly as I'm not registered yet.
Thanks in advance,
Dan



Daniel Lopez (D.Lopez@uib.es
University of the Balearic Islands
Received on Mon Jan 15 17:20:28 2001

This archive was generated by hypermail 2.1.8 : Thu Aug 24 2006 - 14:53:14 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library