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 { ...@@ -9,7 +9,7 @@ varnish v1 -badvcl {
# Reference to non-existent backend # Reference to non-existent backend
varnish v1 -badvcl { varnish v1 -badvcl {
backend b1 { backend b1 {
.host = "localhost"; .host = "127.0.0.1";
} }
sub vcl_recv { sub vcl_recv {
set req.backend = b2; set req.backend = b2;
...@@ -52,7 +52,7 @@ varnish v1 -badvcl { ...@@ -52,7 +52,7 @@ varnish v1 -badvcl {
# unknown field # unknown field
varnish v1 -badvcl { varnish v1 -badvcl {
backend b1 { backend b1 {
.host = "localhost"; .host = "127.0.0.1";
.foobar = 123; .foobar = 123;
} }
} }
...@@ -89,7 +89,7 @@ varnish v1 -badvcl { ...@@ -89,7 +89,7 @@ varnish v1 -badvcl {
# Old backend syntax # Old backend syntax
varnish v1 -badvcl { varnish v1 -badvcl {
backend b1 { backend b1 {
set host = "localhost"; set host = "127.0.0.1";
} }
} }
......
...@@ -5,7 +5,7 @@ test "VCL: test backend probe syntax" ...@@ -5,7 +5,7 @@ test "VCL: test backend probe syntax"
# Check url definition # Check url definition
varnish v1 -vcl { varnish v1 -vcl {
backend b1 { backend b1 {
.host = "localhost"; .host = "127.0.0.1";
.probe = { .probe = {
.url = "/"; .url = "/";
} }
...@@ -15,7 +15,7 @@ varnish v1 -vcl { ...@@ -15,7 +15,7 @@ varnish v1 -vcl {
# Check request definition # Check request definition
varnish v1 -vcl { varnish v1 -vcl {
backend b1 { backend b1 {
.host = "localhost"; .host = "127.0.0.1";
.probe = { .probe = {
.request = .request =
"GET / HTTP/1.1" "GET / HTTP/1.1"
...@@ -27,7 +27,7 @@ varnish v1 -vcl { ...@@ -27,7 +27,7 @@ varnish v1 -vcl {
# Check redefinition # Check redefinition
varnish v1 -badvcl { varnish v1 -badvcl {
backend b1 { backend b1 {
.host = "localhost"; .host = "127.0.0.1";
.probe = { .probe = {
.url = "/"; .url = "/";
.request = .request =
...@@ -40,7 +40,7 @@ varnish v1 -badvcl { ...@@ -40,7 +40,7 @@ varnish v1 -badvcl {
# Check redefinition the other way # Check redefinition the other way
varnish v1 -badvcl { varnish v1 -badvcl {
backend b1 { backend b1 {
.host = "localhost"; .host = "127.0.0.1";
.probe = { .probe = {
.request = .request =
"GET / HTTP/1.1" "GET / HTTP/1.1"
......
...@@ -12,7 +12,7 @@ server s1 -listen 127.0.0.1:9080 { ...@@ -12,7 +12,7 @@ server s1 -listen 127.0.0.1:9080 {
# Only one pool, to avoid getting more than one work thread # Only one pool, to avoid getting more than one work thread
varnish v1 -arg "-p thread_pools=1 -w1,1,300" -vcl { varnish v1 -arg "-p thread_pools=1 -w1,1,300" -vcl {
backend b1 { backend b1 {
.host = "localhost"; .host = "127.0.0.1";
.port = "9080"; .port = "9080";
} }
} -start } -start
...@@ -38,7 +38,7 @@ server s2 -listen 127.0.0.1:9180 { ...@@ -38,7 +38,7 @@ server s2 -listen 127.0.0.1:9180 {
varnish v1 -vcl { varnish v1 -vcl {
backend b2 { backend b2 {
.host = "localhost"; .host = "127.0.0.1";
.port = "9180"; .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