Juin 242010
Attention la directive Order est contre-intuitive :
- Order Allow,Deny
- all Allow directives are evaluated ; at least one MUST match, or the request is rejected.
- all Deny directives are evaluated. If any matches, the request is rejected.
- any requests which do not match an Allow or a Deny directive are denied by default.
Ce qui signifie que
- Si ca match un Deny, quelque soit les autres directives alors reject.
- Si match Allow (mais aucun deny explicite alors accept.
- Si match rien alors reject.
- Order Deny,Allow
- all Deny directives are evaluated; if any match, the request is MARKED TO BE denied.
- if it also matches an Allow directive, the request is permitted.
- Any requests which do not match any Allow or Deny directives are permitted.
Ce qui signifie que
- Si ca match un Allow alors accepte et on en reste là.
- Si match Deny (mais pas un allow précédent) alors reject.
- Si match rien alors accept.
Sorry, the comment form is closed at this time.