I'm trying to configure Varnish Cache on my Ubuntu VPS. I've got it installed and have tried following setup guides and googling etc but my headers never seem to show that varnish is caching.
I am running a node server on port 3000, BUT, port 3000 is forwarding to port 80.. so i'm not exactly sure how this plays with varnish caching. Here are the relevant config options I have changed in varnish... and I haven't touched anything else.
File: /etc/varnish/default.vcl
backend default {
.host = "127.0.0.1";
.port = "3000";
}
File: /etc/default/varnish
DAEMON_OPTS="-a :80 \
-T localhost:80 \
-f /etc/varnish/default.vcl \
-S /etc/varnish/secret \
-s malloc,256m"