yea, i tried that, does not work





Haim Ari / SysOps Manager

M: 972.584563032 / T: 972.722288367





________________________________
From: Jin Hu <bixuehu...@gmail.com>
Sent: Wednesday, June 14, 2017 1:20 PM
To: Haim Ari
Cc: haproxy@formilux.org
Subject: Re: rewrite URI

Hi,

I think you can achieve this by moving rewrite operations into backend section, 
likes the following:


frontend:
    acl is_test url_beg  /Test
    use_backend test if is_test

backend:
    acl is_test url_beg  /Test
    http-request set-path /Prod if is_test


On Wed, Jun 14, 2017 at 5:08 PM, Haim Ari 
<haim....@startapp.com<mailto:haim....@startapp.com>> wrote:

Hello,


I'm would like to create an ACL that will rewrite the URI


if the URI is "/Test"

https://test.example.com/Test<https:///geoEdgeTest>


Change it to: /Prod

https://test.example.com/Prod


But

At the same time also send it to a specific backend

Here is what I've tried but does not seem to work:

acl is_test url_beg  /Test
use_backend test if is_test
http-request set-path /Prod if is_test



Thanks you,

Haim



Reply via email to