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: https://github.com/nicolargo/varnish-nginx-wordpress/blob/master/varnish/varnish4-wordpress

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


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: