Is it possible to dynamically include/exclude blocks somehow using env variables or the like? Something in the lines of

<LocationMatch ...>
  SetEnvIf X-Requested-With XmlHttpRequest xhr
  <If xhr>
    SSLVerifyClient none
  </If>
  <If !xhr>
    SSLVerifyClient optional
  </If>
</LocationMatch>
link|improve this question
Why not just place the AJAX endpoints on another location? The user won't see their URLs anyway. – joschi Sep 7 '10 at 5:35
feedback

1 Answer

You mean like this?

link|improve this answer
I would prefer to use "standard" modules. Would that directive actually work on a per-request basis? I want to configure stuff differently depending on HTTP headers. – penmark Apr 29 '10 at 15:41
feedback

Your Answer

 
or
required, but never shown