Hi all,
Le Sunday 14 August 2011 10:19:04, Ran S a écrit :
> I don't know what's going on, this doesn't seem to work.
>
> With this configuration the header gets changed:
> backend test_servers
> server 118 172.31.0.118:85 id 118
> reqrep ^Host:\ 172.31.0.104 Host:\ 172.31.0.118
>
> But once I add the IF, it breaks and the header does not get changed!
> backend imp_servers
> server 118 172.31.0.118:85 id 118
> reqrep ^Host:\ 172.31.0.104 Host:\ 172.31.0.118 if { srv_id 118 }
>
>
> What am I doing wrong?
reqrep can't be used with the "srv_id" acl : the server is only known late in
the request processus, after the headers manipulation, which makes your
condition never match.
Sorry to say that you can't do it like this.
--
Cyril Bonté