I’ve set up Apache/Varnish but when I try to access a folder on the domain, such as mydomain.com/whatever it is redirecting to mydomain.com:8080/whatever/ and I’m getting a page not available. However when I access mydomain.com/whatever/ with a trailing “/” at the end everything works fine. I’m pretty new to Varnish so any help troubleshooting would be appreciated.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I’m using ubuntu 16 , and having link problems:
http://example.com/test is redirecting to http://example.com:8080/test 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 = "127.0.0.1";
.port = "8080";
}
In /etc/apache2/ports.conf you should set Apache to listen locally:
NameVirtualHost 127.0.0.1:8080
Listen 127.0.0.1:8080
And your VirtualHost should look like:
<VirtualHost 127.0.0.1:8080>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.