14

Varnish client.ip says 127.0.0.1

view full story
linux-howto

http://serverfault.com – So I have a setup like Nginx -> varnish -> apache2 If I get a request with a static file it is sent through nginx to varnish and back to nginx again since its a lot faster than letting apache2 server it. My problem is that when I do a sub vcl_fetch { set beresp.http.X-Tabulex-Client = client.ip; to see what the clients ip address is I am being told its 127.0.0.1 (X-Tabulex-Client 127.0.0.1) In the vcl_recv I have: sub vcl_recv { if((!req.url ~ "^/typo3temp/*" && !req.url ~ "^/typo3/*") && req.url ~ "\.(jpg|css|gif|png|js)(\?.*|)$") { set req.bac (HowTos)