Reputation: 699
# app/config/security.yml
# ...
security:
firewalls:
secured_area:
host: ^admin\.example\.com$
# ...
In symfony, how to have secured area for all hosts except one?
Upvotes: 0
Views: 144
Reputation: 4461
Something like this should help:
security:
firewalls:
not_secured_area:
host: ^admin\.example\.com$
security: false
secured_area:
host: *\.example\.com$
## firewall settings go here
Upvotes: 1