Cannot compile vcl

Poul-Henning Kamp phk at phk.freebsd.dk
Wed Sep 24 15:05:42 CEST 2008


In message <tcd85t75bxubk84.240920081502 at torlen.net>, duja at torlen.net writes:

>The only places where I use the backend child_2 is these:
>
>backend child_1 {
>        .host = "192.168.0.192";
>        .port = "80";
>}
>
>backend child_2 {
>        .host = "192.168.0.193";
>        .port = "80";
>}
>
>
>director www_director random {
>        {
>          .backend = child_1;
>          .weight = 1;
>        }
>
>        {
>          .backend = child_2;
>          .weight = 2;
>        }
>
>}
>
>I cant find any errors in that code and I dont think that im blind again :)

I don't see any errors either, and it works for me if I add to the above


	sub vcl_recv {
		set req.backend = www_director;
	}


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-misc mailing list