Harold
Harold

Reputation: 699

symfony security all hosts except one

# 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

Answers (1)

Ruslan Polutsygan
Ruslan Polutsygan

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

Related Questions