IPv4 & IPv6 address in /etc/hosts' localhost entry.
Use "127.0.0.1" intead.
Send me a telegram when IPv6 matters.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3278
d4fa192b-c00b-0410-8231-
f00ffab90ce4
# Reference to non-existent backend
varnish v1 -badvcl {
backend b1 {
- .host = "localhost";
+ .host = "127.0.0.1";
}
sub vcl_recv {
set req.backend = b2;
# unknown field
varnish v1 -badvcl {
backend b1 {
- .host = "localhost";
+ .host = "127.0.0.1";
.foobar = 123;
}
}
# Old backend syntax
varnish v1 -badvcl {
backend b1 {
- set host = "localhost";
+ set host = "127.0.0.1";
}
}
# Check url definition
varnish v1 -vcl {
backend b1 {
- .host = "localhost";
+ .host = "127.0.0.1";
.probe = {
.url = "/";
}
# Check request definition
varnish v1 -vcl {
backend b1 {
- .host = "localhost";
+ .host = "127.0.0.1";
.probe = {
.request =
"GET / HTTP/1.1"
# Check redefinition
varnish v1 -badvcl {
backend b1 {
- .host = "localhost";
+ .host = "127.0.0.1";
.probe = {
.url = "/";
.request =
# Check redefinition the other way
varnish v1 -badvcl {
backend b1 {
- .host = "localhost";
+ .host = "127.0.0.1";
.probe = {
.request =
"GET / HTTP/1.1"
# Only one pool, to avoid getting more than one work thread
varnish v1 -arg "-p thread_pools=1 -w1,1,300" -vcl {
backend b1 {
- .host = "localhost";
+ .host = "127.0.0.1";
.port = "9080";
}
} -start
varnish v1 -vcl {
backend b2 {
- .host = "localhost";
+ .host = "127.0.0.1";
.port = "9180";
}
}