Hi The documentation of Require expr syntax (https://httpd.apache.org/docs/current/fr/mod/mod_authz_core.html#requiredirectives) contain an error. If using this example : Require expr "!(%{QUERY_STRING} =~ /secret/)" Apache startup fail with this message Cannot parse expression in require line: syntax error, unexpected $end The correct syntax should be : Require expr !(%{QUERY_STRING} =~ /secret/) (Same without double quote) Apache version : Apache/2.4.10 (Debian) Running in docker container. Thank you for all your great work. Regards
The syntax with the " works fine with 2.4.33. In fact the syntax with " has been introduced in trunk in r1585609. It has been backported in r1678236. That is to say 2.4.16. See bug 56235. I'll add a note in the doc to explicitly state when this syntax has been added.