Add server-id to response header

2011-11-10 Thread Jan-Oliver John
Hi guys, is it possible to set a response header that includes the server id the request has been sent to? Maybe with rspadd something? for example (conf): --- frontend vs_something rspadd server-id # either server1 or server2 backend pool_something balance roundrobin

Re: Add server-id to response header

2011-11-10 Thread Jan-Oliver John
On 10 November 2011 17:40, Jan-Oliver Johnoj...@vz.net wrote: Hi guys, is it possible to set a response header that includes the server id the request has been sent to? Maybe with rspaddsomething? I'm not sure if rspadd is up to the job. I had a quick look and it looks like the answer is

Re: Add server-id to response header

2011-11-10 Thread Baptiste
There might be a dirty way: In your backend, give a try to the above: acl server1 srv_id 1 acl server2 srv_id 2 rspadd X-Server:\ server1 if server1 rspadd X-Server:\ server2 if server2 server 1 server11.1.1.1:80 id 1 server 2 server12.2.2.2:80 id 2 Please tell me