Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trackrdrd
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
trackrdrd
Commits
29dd8131
Commit
29dd8131
authored
Sep 25, 2012
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VCL: Now excluding api/internal/status and sending the X-Forwarded-For header.
parent
a3b733d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
track.vcl.inc
vcl/track.vcl.inc
+5
-1
No files found.
vcl/track.vcl.inc
View file @
29dd8131
...
@@ -7,7 +7,7 @@ sub vcl_recv_track {
...
@@ -7,7 +7,7 @@ sub vcl_recv_track {
# and static resources
# and static resources
if
(
req
.
esi_level
==
0
&&
if
(
req
.
esi_level
==
0
&&
req
.
url
!~
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
));
std
.
log
(
"track "
+
req
.
xid
+
" url="
+
urlcode
.
encode
(
req
.
url
));
if
(
req
.
http
.
Cookie
)
{
if
(
req
.
http
.
Cookie
)
{
...
@@ -22,6 +22,10 @@ sub vcl_recv_track {
...
@@ -22,6 +22,10 @@ sub vcl_recv_track {
std
.
log
(
"track "
+
req
.
xid
+
" X-Origin="
std
.
log
(
"track "
+
req
.
xid
+
" X-Origin="
+
urlcode
.
encode
(
req
.
http
.
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
~
"^/ts-rcv"
)
{
if
(
req
.
url
~
"\?"
)
{
if
(
req
.
url
~
"\?"
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment