Varnish always 301 redirecting

I’ve got an apache running wordpress on port 90. I’ve put a varnish cache in front of it and am running varnish on port 80.

I’m using the 4.0 vcl from here:

When I request my site on :80 I get 301 redirected to :90 … Surely that’s not the point of varnish? How do I avoid this and stay on :80??

I’m a complete newbie to varnish / vcl so I unfortunately have no idea what to look for. I’m sure it’s in the VCL though 🙂

Related post (but not answer on here either): Why is Varnish redirecting as 301?

Read more here: Varnish always 301 redirecting

Leave a Reply

Your email address will not be published. Required fields are marked *