Varnish + Nginx + multiple IP addresses
- by adnan
This is my first shot at making Varnish work on my dedicated server which hosts 2 domains with 2 separate IP-addresses. My simplified setup is as follows:
Nginx conf
server {
listen ip-address-1:8080;
}
server {
listen ip-address-2:8080;
}
Varnish vcl
backend default {
.host = "127.0.0.1";
.port = "80";
}
And in the varnish…