Commit 29dd8131 authored by Geoff Simmons's avatar Geoff Simmons

VCL: Now excluding api/internal/status and sending the X-Forwarded-For header.

parent a3b733d9
......@@ -7,7 +7,7 @@ sub vcl_recv_track {
# and static resources
if (req.esi_level == 0 &&
req.url !~
"^/(?:ts-processor|[^/]+/internal/status)|\.(?:gif|jpe?g|swf|png|css|js)$"
"^/(?:ts-processor|[^/]+(?:/api)?/internal/status)|\.(?:gif|jpe?g|swf|png|css|js)$"
) {
std.log("track " + req.xid + " url=" + urlcode.encode(req.url));
if (req.http.Cookie) {
......@@ -22,6 +22,10 @@ sub vcl_recv_track {
std.log("track " + req.xid + " X-Origin="
+ urlcode.encode(req.http.X-Origin));
}
if (req.http.X-Forwarded-For) {
std.log("track " + req.xid + " X-Forwarded-For="
+ urlcode.encode(req.http.X-Forwarded-For));
}
}
if (req.url ~ "^/ts-rcv") {
if (req.url ~ "\?") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment