mod_usertrack with X-Forwarded-For (proxy) IPs, apache 2.2
Posted
by
ripper234
on Ask Ubuntu
See other posts from Ask Ubuntu
or by ripper234
Published on 2012-12-17T17:31:51Z
Indexed on
2012/12/18
11:13 UTC
Read the original article
Hit count: 408
I'm using apache 2.2 with mod_usertrack, behind a reverse proxy (load balancer).
Now, the proxy disguises the client's real IP addresses (keeps them in the X-Forwarded-For header), and forwards the request along.
mod_usertrack uses the clients' IP (along with some noise) to generate a GUID for each client. However, because of the proxy, it only sees a single IP and the generated GUIDs for each client are very similar (even with some possible collisions).
I would like to upgrade apache to version 2.4, but it seems to be somewhat of a project. I did manage to compile it using this post and a few others, only to discover the folder structure does not resemble the one I had before (default ubuntu). I'm weary of tweaking it myself ... and I will be making my life miserable if I want to upgrade the server later on.
So ... what are my options?
- Is there a good unofficial repository that packages apache 2.4 for Oneiric? (please provide a short 'how to', I'm not great in installing packages)
- Is there an alternative route to solve this? (Upgrading just the user_track module? Another module that works with apache 2.2?)
© Ask Ubuntu or respective owner