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