backend site {
.host = "127.1337";
.port = "8080";
}
sub vcl_recv {
if (req.http.X-Forwarded-For) {
remove req.http.X-Forwarded-For;
set req.http.X-Forwarded-For = client.ip;
}
if( req.url ~ "^/wp-(login|admin)" || req.http.Cookie ~ "wordpress_logged_in_" ){
return (pass);
}
unset req.http.Cookie;
return (lookup);
if (req.http.Accept-Encoding) {
if (req.url ~ "\.(jpg|png|gif|gz|tgz|bz2|lzma|tbz)(\?.*|)$") {
remove req.http.Accept-Encoding;
} elsif (req.http.Accept-Encoding ~ "gzip") {
set req.http.Accept-Encoding = "gzip";
} elsif (req.http.Accept-Encoding ~ "deflate") {
set req.http.Accept-Encoding = "deflate";
} else {
remove req.http.Accept-Encoding;
}
}
if (req.url ~ "^/[^?]+\.(jpeg|jpg|png|gif|ico|js|css|txt|gz|zip|lzma|bz2|tgz|tbz|html|htm)(\?.*|)$") {
unset req.http.cookie;
set req.url = regsub(req.url, "\?.*$", "");
}
}
13 RxHeader c X-Forwarded-For: 90.157.47.15
13 RxHeader c X-Real-IP: 90.157.47.15
13 RxHeader c X-Forwarded-For-nginx: 90.157.47.15-nginx
13 RxHeader c X-Real-IP-nginx: 90.157.47.15
Спасибо большое.
Сам бы явно не скоро не догадался.