Commit 077c5d1c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Eliminate "localhost" from backends, some computers have both an

IPv4 & IPv6 address in /etc/hosts' localhost entry.

Use "127.0.0.1" intead.

Send me a telegram when IPv6 matters.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3278 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent b8f6d457
......@@ -9,7 +9,7 @@ varnish v1 -badvcl {
# Reference to non-existent backend
varnish v1 -badvcl {
backend b1 {
.host = "localhost";
.host = "127.0.0.1";
}
sub vcl_recv {
set req.backend = b2;
......@@ -52,7 +52,7 @@ varnish v1 -badvcl {
# unknown field
varnish v1 -badvcl {
backend b1 {
.host = "localhost";
.host = "127.0.0.1";
.foobar = 123;
}
}
......@@ -89,7 +89,7 @@ varnish v1 -badvcl {
# Old backend syntax
varnish v1 -badvcl {
backend b1 {
set host = "localhost";
set host = "127.0.0.1";
}
}
......
......@@ -5,7 +5,7 @@ test "VCL: test backend probe syntax"
# Check url definition
varnish v1 -vcl {
backend b1 {
.host = "localhost";
.host = "127.0.0.1";
.probe = {
.url = "/";
}
......@@ -15,7 +15,7 @@ varnish v1 -vcl {
# Check request definition
varnish v1 -vcl {
backend b1 {
.host = "localhost";
.host = "127.0.0.1";
.probe = {
.request =
"GET / HTTP/1.1"
......@@ -27,7 +27,7 @@ varnish v1 -vcl {
# Check redefinition
varnish v1 -badvcl {
backend b1 {
.host = "localhost";
.host = "127.0.0.1";
.probe = {
.url = "/";
.request =
......@@ -40,7 +40,7 @@ varnish v1 -badvcl {
# Check redefinition the other way
varnish v1 -badvcl {
backend b1 {
.host = "localhost";
.host = "127.0.0.1";
.probe = {
.request =
"GET / HTTP/1.1"
......
......@@ -12,7 +12,7 @@ server s1 -listen 127.0.0.1:9080 {
# 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
......@@ -38,7 +38,7 @@ server s2 -listen 127.0.0.1:9180 {
varnish v1 -vcl {
backend b2 {
.host = "localhost";
.host = "127.0.0.1";
.port = "9180";
}
}
......
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