On Fri, Aug 8, 2014 at 9:42 PM, Jeremy Wilson <[email protected]> wrote:
> I have a situation where I am depreciating an older API and rather than run a 
> full app server to tell old apps to upgrade, I'd like to have haproxy return 
> a text file similar to how it does errorfile.  So, if an ACL picks up the old 
> API, it directs it to specific backend that has "errorfile 200 /upgrade.http" 
> or similar.
>
> Just wondering if that would work.  If not, any suggestions to do this all 
> within haproxy?
>

Hi Jeremy,

It should work.
Create a backend with no servers and use 'errorfile 503 yourfile.http'
When no servers in a farm, HAProxy generates a 503.

Baptiste

Reply via email to