Varnish VCL not allowing two separate IP addresses as backends
- by Peter Griffin
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.