【问题标题】:symfony security all hosts except onesymfony 安全 除一台以外的所有主机
【发布时间】:2015-03-29 17:45:58
【问题描述】:
# app/config/security.yml 
# ...
security:
    firewalls:
        secured_area:
            host: ^admin\.example\.com$
            # ...

在 symfony 中,如何为除一个以外的所有主机设置安全区域?

【问题讨论】:

    标签: php security symfony


    【解决方案1】:

    这样的事情应该会有所帮助:

    security:
        firewalls:
            not_secured_area:
                host: ^admin\.example\.com$
                security: false
            secured_area:
                host: *\.example\.com$
                ## firewall settings go here
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-03-08
      • 2019-04-15
      • 2019-05-24
      • 2020-09-16
      • 2023-04-11
      • 2014-12-08
      • 1970-01-01
      相关资源
      最近更新 更多