Hi Thanks to Yura Pismerov who point me to the "HTTP_X_FORWARDED_FOR" header of squid. [Gracies tambi Agustin i Roger ;-)] It can be done with apaches. I've find to available modules that solves my problem. mod_proxy_add_forward for the "front-end" apache. It adds the "HTTP_X_FORWARDED_FOR <client ip address>" to the request. Use with normal mod_proxy operation (ProxyPass / ProxyPassReverse ...) mod_extract_forwarded for the "back-end" apache (ias). It extracts the HTTP_X_FORWARDED_FOR variable and puts it in the $REMOTE_ADDRESS. Need directives. "AddForwarderFor all" or the like. Modules compiles and installs fine with apxs. (Need mod_so built in apache) So, the ias's logs (in a private ip) records the client ips, not the apache-proxy one, and can be inserted in oracle tables. ORIGINAL MSG > Hi > > A bit offtoppic question, but time critical for me. > > I have to put an apache (ias) in a intranet (192.168.x.x) machine and > a public apache in a public one. Requests to the public apache will be > forwarded to internal one (ias) who needs the client (user) ip to proceed > via apache environement variables ($REMOTE_ADDRESS) to fill a Oracle > table. > > How can I pass the client ip to the internal Apache? I used de > mod_proxy in the external server but the logged ip in the internal server > was the ip of the external, not the ip of the client. > > Anyone has built something like this? Regards, Jordi === Unexpected end of coffe. Operator halted. _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Tue Dec 4 09:28:28 2001
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:29 EST