Setting compression for specific request paths

2015-03-23 Thread Sachin Shetty
Hi,

I see that we can set compression type on a frontend or backend. Due to
some application level complication we want haproxy to not compress specific
request path for example /api and compress the rest as usual.

Any idea on how this can be done?

One way would be to route the requests through a different backend and
disable compression there, but that would be a ugly config to maintain.

Thanks
Sachin




Re: Setting compression for specific request paths

2015-03-23 Thread Ha Quan Le
Thank you for support, we have fixed our issues. 
Ha. 
- Original Message -

From: Sachin Shetty sshe...@egnyte.com 
To: haproxy@formilux.org 
Sent: Monday, March 23, 2015 3:38:53 AM 
Subject: Setting compression for specific request paths 


Hi, 


I see that we can set compression type on a frontend or backend. Due to some 
application level complication we want haproxy to not compress specific request 
path for example /api and compress the rest as usual. 


Any idea on how this can be done? 


One way would be to route the requests through a different backend and disable 
compression there, but that would be a ugly config to maintain. 


Thanks 
Sachin