Skip to content

Instantly share code, notes, and snippets.

@mrafayaleem
Last active February 22, 2017 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrafayaleem/2d21bdfde866e5e6ea73fd993d850bd5 to your computer and use it in GitHub Desktop.
Save mrafayaleem/2d21bdfde866e5e6ea73fd993d850bd5 to your computer and use it in GitHub Desktop.
frontend all
bind *:80
timeout client 50000
default_backend main
acl is_old_webhook path_reg ^\/webhook-old.*
acl is_refund path_reg ^\/refund-endpoint.*
acl is_new_webhook path_reg ^\/webhook-new.*
use_backend old_service if is_old_webhook
use_backend new_service if is_refund
use_backend new_service if is_new_webhook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment