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

Kevin openbsdnow at gmail.com
Tue Feb 7 21:46:25 CET 2012


Reinis Rozitis wrote:
>> 1. if there's a way to handle this type of thing more gracefully in 
>> varnish (and if not)
>> 2. does anyone have the mod_rewrite foo to exorcise my new-found 
>> trailing slash problem?
> Try adding:
>
> UseCanonicalName Off
>
> ( http://httpd.apache.org/docs/current/mod/core.html#usecanonicalname 
> ) in your apache config then it should use whatever port/hostname 
> varnish (client) provides in the redirects rather than the defined in 
> server block.
No dice.

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?

Many thanks,
Kevin



More information about the varnish-misc mailing list