Control Web Panel
WebPanel => Apache => Varnish => Topic started by: kironet on April 18, 2015, 02:20:39 PM
-
Hello,
I have problem, PHP $_SERVER['REMOTE ADDR'] always return 127.0.0.1 or server IP.
How can I fix that? I need client IP address...
Thank
-
I fixed this..
sub vcl_recv {
remove req.http.X-Forwarded-For;
set req.http.X-Forwarded-For = client.ip;
}
-
where to place this ?