You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2019/02/17 16:32:05 UTC

[Bug 63145] not work inside

https://bz.apache.org/bugzilla/show_bug.cgi?id=63145

--- Comment #1 from Luca Toscano <to...@gmail.com> ---
Hi!

I verified this behavior, and I should be due to how sections are merged:

https://httpd.apache.org/docs/2.4/sections.html#merging

Files and FilesMatch are processed before the If blocks (in the map_to_storage
core bits), so I think that when it comes to evaluate the <If> condition then
the core will not be able to merge anything Files/Directory related, ending up
in the result presented by your report.

Note that the following should work:

   <FilesMatch \.php$>
       <If "-f '/www/%{HTTP_HOST}/php70'">
          SetHandler "proxy:fcgi://127.0.0.1:9070"
       </If>
   </FilesMatch>

If my idea is true I am wondering if httpd should explicitly throw a
configuration parse error when this kind of settings are applied by the user.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org