]> err.no Git - varnish/commitdiff
Eliminate "localhost" from backends, some computers have both an
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 10 Oct 2008 13:08:37 +0000 (13:08 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 10 Oct 2008 13:08:37 +0000 (13:08 +0000)
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

varnish-cache/bin/varnishtest/tests/v00002.vtc
varnish-cache/bin/varnishtest/tests/v00005.vtc
varnish-cache/bin/varnishtest/tests/v00006.vtc

index 2019bef1c285e3a40398a53e3bc49b198574ce81..cffc7656b6103ddcd920ea92e70fe8a855666f28 100644 (file)
@@ -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";
        }
 }
 
index f582de9c064d9e09e3f48e9048351fc69a847190..1919a6c591b7d02bae8c0b842f3dc4fbfeccc95d 100644 (file)
@@ -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"
index 9839b796dedc66ad744e165b6e24087e8be91513..1e10ab587d89136917384bf9e3799aa4a73f2e9d 100644 (file)
@@ -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";
        }
 }