Does Varnish support unix domain socket files?
Does varnish support unix socket files?
I'd like to accelerate my website by adding a varnish reverse proxy (HTTP accelerator/cache) before my web server. My web server's virtual host is currently configured to listen for connections on a "UNIX-domain socket". For more info on this config, see the "path
" argument for the "listen
" directive in NGINX:
- https://nginx.org/en/docs/http/ngx_http_core_module.html#listen
Is it possible for varnish to communicate to my existing nginx server's config over a unix domain socket file as its backend?
And is it possible for varnish to also itself listen on a domain socket?
Varnish has had support for Unix Domain Sockets (UDS) for both clients and backend servers since Varnish 6.0 was released in March 2018.
You can define a backend to use a UDS using the .path
field in the backend
declaration. Or by using the -b
argument in varnishd
.
Varnish itself can listen on a UDS using the -a
argument when starting varnishd