qwrty
December 5, 2019, 1:33pm
1
Hey folks,
I would like to know if I can make a redirection to a specific server, before handle the redirection to final backend ?
I will try to explain better with an example:
Here my condition:
use_backend plex if { hdr_beg(Host) -i plex. }
here my backend:
backend plex
server plex 127.0.0.1:32400 check
basic content delivering, working great.
I would like to make a sort of announce to the user and redirect him to a temporary web page on my server then redirect to the backend.
Is this possible with haproxy ?
Thank you
Hi,
No, you can’t do this directly.
What you can do is to route to that “information” server in case the client does not have a cookie or a url param or a whatever indicating it has never seen the information page.
Then, if a client comes in, you can easily spot if he got already redirected to that information message or not.
qwrty
December 12, 2019, 11:40am
3
Thank you, I guess your refer to this:
I have 2 server witch run behind HaProxy Load balancer.
Here scenario is that application opens new popup window and it doesn’t carry forward parent cookies in pop up window, so it doesn’t know which back-end server will serve the request, so we have planned to pass it in URL like for initial request
Next request which comes after this will have the SERVERID as cookie, so here default haproxy backend will take care where to send the request
example. com/?balancer=app1 (This request should go …
?