Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
3adc381f
Commit
3adc381f
authored
Mar 06, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make this test jail-compatible
parent
7b13cad0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
o00004.vtc
bin/varnishtest/tests/o00004.vtc
+6
-3
No files found.
bin/varnishtest/tests/o00004.vtc
View file @
3adc381f
...
...
@@ -2,13 +2,16 @@ varnishtest "Sending proxy headers via health probes"
# Double-proxy scheme stolen from o00002.vtc
# Get ${v1_addr} defined so s1 can use it so v1 can use ${s1_addr}
varnish v1 -proto PROXY -vcl {backend foo { .host = ":80"; }} -start
server s1 {
rxreq
expect req.http.x-forwarded-for ==
"127.0.0.1"
expect req.http.x-forwarded-for ==
${v1_addr}
txresp
} -start
varnish v1 -
proto PROXY -
vcl+backend {
varnish v1 -vcl+backend {
import debug;
sub vcl_recv {
...
...
@@ -16,7 +19,7 @@ varnish v1 -proto PROXY -vcl+backend {
return (synth(400));
}
}
}
-start
}
varnish v2 -proto PROXY -vcl {
import std;
...
...
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