On Jan 7, 2014, at 5:10 AM, Rakesh G K <[email protected]> wrote:

> Hello,
> 
> When in a clustered mode deployment, I need to be able to map certain 
> requests that an ats node receives to the origin server. 
> When I have a load balancer fronting the cluster, there is no way of knowing 
> which server which get what request. So assuming that there are 3 ats nodes, 
> and a origin server URL, say http://www.example.com/origin, is there a better 
> way of remapping this than what is written below?
> 
> map http://www.ats1.com/origin http://www.example.com/origin
> map http://www.ats2.com/origin http://www.example.com/origin
> map http://www.ats3.com/origin http://www.example.com/origin
> 
> I


This sounds like a case where you want to keep pristine Host headers across the 
board. That would imply making sure your origins can handle those “client” 
submitted Host: header, but would allow for a single, unified remap config 
across the board. Just make sure you have

        CONFIG proxy.config.url_remap.pristine_host_hdr INT 1


That is the default as well. Now, I’m not a clustering expert, so maybe cluster 
doesn’t honor this. If it doesn’t, that smells like a bug to me.

— Leif

Reply via email to