Created
May 18, 2017 13:09
-
-
Save jtslear/a6270fcd1b794c936ed25347662e1ea6 to your computer and use it in GitHub Desktop.
Example usage of an ACL to detect a cookie and redirect appropriately
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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