[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


On Sat, Feb 16, 2008 at 10:02 AM, Michael Peters <suppressed> 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

#####  CGI::Application community mailing list  ################
##                                                            ##
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp    ##
##                                                            ##
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:          http://cgiapp.erlbaum.net/                 ##
##                                                            ##
################################################################


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.