Skip to content

Instantly share code, notes, and snippets.

@chadrien
Created July 16, 2013 15:46
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 chadrien/6009913 to your computer and use it in GitHub Desktop.
Save chadrien/6009913 to your computer and use it in GitHub Desktop.
Symfony 2 : per host firewall
services:
my_host.firewall.request_matcher:
class: Symfony\Component\HttpFoundation\RequestMatcher
arguments: ["/", "www\.host\.eu"]
security:
firewalls:
my_firewall:
request_matcher: site.my_firewall.request_matcher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment