pass user IP to file

Wido den Hollander wido at widodh.nl
Tue Nov 30 09:17:26 CET 2010


Hi Andy,

Take a look at mod_extract_forwarded for Apache, this will help you.

Or mod_rpath does the same.

Just make sure you pass the correct X-Forwarded-For header in your VCL.

Wido

On Mon, 2010-11-29 at 21:48 +0000, Andy Bailey wrote:
> I have a file on my server that checks a user hasn't accessed it more
> than 5 times in the past 5 minutes by saving the IP address of every
> request. Since having varnish installed, the file is denying access to
> everyone because for some reason the IP address that is being stored
> is always my server IP. How would I make sure that requests to that
> file pass the users IP address?
> 
> 
> hope you can help?
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> http://lists.varnish-cache.org/mailman/listinfo/varnish-misc





More information about the varnish-misc mailing list