Hi
Is it possible to hide part of the URL with haproxy, for example
https://site1.domain.com/HIDE/login/
should be visible as https://site1.domain.com/login in the browser.
Thank you.
Hi
Is it possible to hide part of the URL with haproxy, for example
https://site1.domain.com/HIDE/login/
should be visible as https://site1.domain.com/login in the browser.
Thank you.
If you want to rewrite a request’s path you can do so with http-request set-path:
http-request set-path /HIDE%[path]
(Note that there isn’t a /
between /HIDE
and %[path]
as the last token already contains a slash.)
However please note that this only rewrites the HTTP request path, not the paths within the served HTML. Therefore the actual page might still “leak” the /HIDE
paths.
To my knowledge there is no solution to rewrite the HTTP body with HAProxy itself.