Varnish VCL not allowing two separate IP addresses as backends

Posted by Peter Griffin on Server Fault See other posts from Server Fault or by Peter Griffin
Published on 2012-09-11T15:05:17Z Indexed on 2012/09/11 15:40 UTC
Read the original article Hit count: 248

Filed under:
|

Every time I attempt to add an extra back end into our VCL file, it's fails.

Here is the DAEMON_OPTS we are running off:

DAEMON_OPTS="-a :80 \ -T localhost:6082 \ -f /etc/varnish/custom.vcl \ -u varnish -g varnish \ -S /etc/varnish/secret \ -s malloc,10G"

And here is the offending backend(s)

backend default { .host = "114.123.456.789"; .port = "8080"; }

backend alt { .host = "203.123.456.789"; .port = "80"; }

Any Ideas ? Gut feeling is it might need the backends to be set somewhere, but I'm not sure where.

© Server Fault or respective owner

Related posts about apache2

Related posts about varnish