How does one start varnishd to listen on multiple ports?

Mike Gracy ghstridr at gmail.com
Thu Jun 9 01:51:49 CEST 2011


I have -a 0.0.0.0:8080 -a 0.0.0.0:9010 in the /etc/default/varnish but
it will only listen on 9010.

 DAEMON_OPTS="-a 0.0.0.0:8080 \
              -a 0.0.0.0:9010 \
              -T localhost:2000 \
              -f /etc/varnish/default.vcl \
              -n $INSTANCE"

I have the same problem when running it from the command line.  It
only starts listening on the last port listed.
If I start two separate instances, changing the port and -n values, it works.




More information about the varnish-misc mailing list