[cgiapp] Poll: What's your favorite CGI-App plugin and why?

Cees Hek ceeshek at gmail.com
Fri Feb 15 18:31:44 EST 2008


On Sat, Feb 16, 2008 at 10:02 AM, Michael Peters <mpeters at plusthree.com> wrote:
>  Third, if you ever have to scale your application so that's it's behind a
>  reverse proxy (a very typical first stage when scaling) everything will break
>  since everyone will appear to be coming from the same IP.

For an apache solution to this problem, you can use mod_rpaf to solve
the issue.  Your proxy servers should be adding a Forwarded-For header
with the IP address of the originating requester.  If you run mod_rpaf
on the servers behind the proxies, and tell it about all your proxy
servers, then it will tell apache what the real originating address
is, and all your apps will see that value.

Cheers,

Cees


More information about the cgiapp mailing list