I've been looking and there are a lot of people with the same problem, but there aren't a clear solution (or at least I hadn't find it).
I am using Varnish-Cache (3.0) as reverse proxy listening in port 80 for an Apache 2 webserver listening in port 88.
If I request the following URL it works fine: http://server/stuff/
But, if I request this: http://server/stuff (without the "/" at the end), the browser is redirected to the port of the backend Apache (http://server:88/stuff/).
How can I set up the behavior of Apache 2 in that situation?
Thanks in advance!
Check the UseCanonicalName directive on httpd.conf
You can also remove it on varnish, try this: