On Jan 24, 2007, at 3:56 PM, Octavian Rasnita wrote:
Hi all,
Does anyone have an example of setting Apache2 that use a reverse
proxy with mod_proxy?
I have set my own, but I receive some errors in the error log and I
don't know how to solve them, and I also don't know how to make the
IP of the visitor appear in the back-end server's access log.
Thank you for any help.
Octavian
On the backend proxy, you can use this:
http://search.cpan.org/~jvanasco/Apache2-xForwardedFor-0.04/lib/
Apache2/xForwardedFor.pm
On the front end , you'll have to do some munging to get the ip in
the x-forwarded-for header. I use nginx on the front, not apache, so
can't help.
Some people prefer using x-real-ip , i don't.
// Jonathan Vanasco
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
| SyndiClick.com
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
| FindMeOn.com - The cure for Multiple Web Personality Disorder
| Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
| RoadSound.com - Tools For Bands, Stuff For Fans
| Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -