New Apache 2.4 directives such as "Require all denied" not understood in .htaccess by mod_perl (including current 2.0.9-dev)

"Frédéric Buclin" <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
While investigating
https://bugzilla.mozilla.org/show_bug.cgi?id=1138463, I compiled
mod_perl 2.0.9-dev, but it still has the same problem as 2.0.8 and
older: mod_perl doesn't understand the new directives from Apache 2.4
used in .htaccess.

Apache 2.4 now uses directives such as "Require all denied" instead of
the old "Deny from all". But when mod_perl is installed, this makes
Apache 2.4 to crash with:

[core:alert] .htaccess: Require not allowed here

Maybe mod_perl is confused because "Require ..." directives are also
used for authentication.

Anyway, for now I use this hack:

    <IfVersion < 2.4>
      Deny from all
    </IfVersion>
    <IfVersion >= 2.4>
      <IfModule mod_perl.c>
        Deny from all
      </IfModule>
      <IfModule !mod_perl.c>
        Require all denied
      </IfModule>
    </IfVersion>

But this is not ideal. Known bug?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.