# app/config/security.yml
# ...
security:
firewalls:
secured_area:
host: ^admin\.example\.com$
# ...
在symfony中,如何为除一个主机之外的所有主机设置安全区域?
答案 0 :(得分:1)
这样的事情应该会有所帮助:
security:
firewalls:
not_secured_area:
host: ^admin\.example\.com$
security: false
secured_area:
host: *\.example\.com$
## firewall settings go here