Apache/Varinish redirecting to

  • Posted August 22, 2014

I’ve set up Apache/Varnish but when I try to access a folder on the domain, such as it is redirecting to and I’m getting a page not available. However when I access with a trailing “/” at the end everything works fine. I’m pretty new to Varnish so any help troubleshooting would be appreciated.


I didn’t think a live domain example mattered but here you go: and

What config file(s) do you need to see?

How are we expected to troubleshoot? You censored your domains and there is no config available.

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I’m using ubuntu 16 , and having link problems: is redirecting to and returning error :|

tried @asb solution, but no deal :/

Is Apache listening on 8080 publicly? Usually the way to do it is have Apache listening on the local loopback device. What’s the Varnish backend configuration?

backend default {
    .host = "";
    .port = "8080";

In /etc/apache2/ports.conf you should set Apache to listen locally:


And your VirtualHost should look like: