I believe it uses the remap'ed url to match -- c23-ngxorg-01 for both
cases.... which then matches your last dest_domain parent rule and
goes to origin.

FWIW, we follow the pattern:
child
map inboundURL inboundURL
(with parent.config containing inboundURL)
then the parent gets
map inboundURL originURL

This allows us to have https urls through the layers -- if we can get
the certificate for the child, the parent can use the same one.

miles

On Mon, Nov 25, 2019 at 1:46 AM ezko <[email protected]> wrote:
>
> Hi,
> trying to understand url_regex for parent.config.
> given 2 remap rules , i want my_new_ds2 to go to the parent , but my_new_ds
> go directly to the origin
>
> map   http://c23-atsec-02.my_new_ds.lab1.hvds.local/
> http://c23-ngxorg-01/
> map   http://c23-atsec-02.my_new_ds2.lab1.hvds.local/
> http://c23-ngxorg-01/
>
> i tried the following parent config:
>
> url_regex=.*my_new_ds2.* parent="c23-atmid-01.lab1.hvds.hlit.local:80|0.1;"
> round_robin=consistent_hash go_direct=false qstring=ignore
>
> dest_domain=c23-ngxorg-01 port=80 go_direct=true
>
> but this doesn'w work.
> does url_regex look at the request url ? will the first match take
> precedence ?
>
> Thanks,
> erez
>
>
>
>
> --
> Sent from: http://apache-traffic-server.24303.n7.nabble.com/

Reply via email to