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

Regards,
Holger

Reply via email to