I have a question about a http request in haproxy. I have the following problem.
i have a variable url e.g.
http://mywebsite.com/job/1/hello-world/display/redirect
Everything between http://mywebsite.com/ and
/display/redirect
can be variable. Now I want everything that goes to ...../display/redirect to be cut off so that goes to http://mywebsite.com/job/1/hello-world without /display/redirect there is a way to define that ? I have the possibility to define fixed urls but how is that with variable urls where only the end is always according to the principle ?
I've been thinking about something like :
http-request redirect code 301 location http://mywebsite.com/ [..] if {path_beg [..]/display/redirect}
Aucun commentaire:
Enregistrer un commentaire