Hi Holger,
On Thu, Jun 09, 2016 at 02:38:38PM +0200, Holger Just wrote:
> Hi,
>
> when navigating to a directory of the downloads section on haproxy.org
> while omitting the trailing slash, e.g.
>
> http://www.haproxy.org/download/1.5
>
> the response is a 301 redirect to
>
> http://www.haproxy.org:81/download/1.5/
>
> which I assume is generated by the backend Apache by adding its internal
> port to the generated URL. This could potentially be solved by adding
> this config rule in the frontend HAproxy to drop any explicit port
> number from the redirects (or any other way you see fit :)
>
> http-response replace-header Location ^(https?://[^:]*):\d+/(.*) \1/\2
Ah thanks, indeed a fe times in the past some people have reported
this anomaly but I didn't know where it originated from. I'm going
to apply your rule as is, it looks fine!
Thanks,
Willy