Commit 4530cb69 authored by Geoff Simmons's avatar Geoff Simmons

track_vcl.inc: Now X-Forwarded-Proto and Host

Also updated to match puppet version (renamed file, exclude *.ico)
parent 70115b5f
......@@ -7,7 +7,7 @@ sub vcl_recv_track {
# and static resources
if (req.esi_level == 0 &&
req.url !~
"^/(?:ts-processor|[^/]+(?:/api)?/internal/status)|\.(?:gif|jpe?g|swf|png|css|js)$"
"^/(?:ts-processor|[^/]+(?:/api)?/internal/status)|\.(?:gif|jpe?g|swf|png|css|js|ico)$"
) {
std.log("track " + req.xid + " url=" + urlcode.encode(req.url));
if (req.http.Cookie) {
......@@ -26,6 +26,14 @@ sub vcl_recv_track {
std.log("track " + req.xid + " X-Forwarded-For="
+ urlcode.encode(req.http.X-Forwarded-For));
}
if (req.http.X-Forwarded-Proto) {
std.log("track " + req.xid + " X-Forwarded-Proto="
+ urlcode.encode(req.http.X-Forwarded-Proto));
}
if (req.http.Host) {
std.log("track " + req.xid + " Host="
+ urlcode.encode(req.http.Host));
}
}
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