varnish/apache wacky incorrect port issues when link contains atrailing slash

Aurélien footplus at gmail.com
Tue Feb 7 21:55:19 CET 2012


On Tue, Feb 7, 2012 at 9:51 PM, Andreas Plesner Jacobsen <apj at mutt.dk>wrote:

> On Tue, Feb 07, 2012 at 12:46:25PM -0800, Kevin wrote:
> >
> > Tried setting it globally first and for fun at the VirtualHost
> > level, too, with the same results,   :8080   in any of our URLs when
> > the trailing / is omitted.
> >
> > As much as I hate to say it, this is a show-stopper for me right now
> > with getting Varnish in play in our environment.
> >
> > Anyone have any other ideas?
>
> Run apache on port 80. We usually bind apache to 127.0.0.1:80 where
> backend and
> varnish runs on the same machine.
>
>
That, and/or perhaps look at the description of the option
UseCanonicalPhysicalPort (
http://httpd.apache.org/docs/current/mod/core.html#usecanonicalphysicalport)
to be clear about the rewriting of Apache port number. Also, please
make
sure that the redirection was not cached by Varnish.

Best regards,
-- 
Aurélien Guillaume
*- By all means break the rules, and break them beautifully, deliberately
and well. That is one of the ends for which they exist. -- *Robert
Bringhurst
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120207/f6a495e0/attachment.html>


More information about the varnish-misc mailing list