Skip to content

Instantly share code, notes, and snippets.

@jtslear
Created May 18, 2017 13:09
Show Gist options
  • Save jtslear/a6270fcd1b794c936ed25347662e1ea6 to your computer and use it in GitHub Desktop.
Save jtslear/a6270fcd1b794c936ed25347662e1ea6 to your computer and use it in GitHub Desktop.
Example usage of an ACL to detect a cookie and redirect appropriately
acl root-page-url path /
acl has_syrup req.cook(syrup) -m found
use_backend marketing if !has_syrup root-page-url
default_backend application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment