You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jie Gao <J....@sydney.edu.au> on 2015/04/22 08:34:40 UTC

Apache 2.4: How to get to "require" now?

Hi 

Now that "ap_requires" is gone in Apache 2.4, "Apache2::RequestRec->requires" is also no longer available in mod_perl.

How do I get to things like "Require valid-user" now?

Regards,


Jie 

Re: Apache 2.4: How to get to "require" now?

Posted by Jie Gao <J....@sydney.edu.au>.
Still fumbling, but I have found out how to get to a bit of it now:

---
sub authz_handler {
    my $self = shift;
    my $r = shift;
    my $requires = shift;
---

It looks like the handler gets called for each Require* directive(?). 


Regards,

Jie 

* Jie Gao <J....@sydney.edu.au> wrote:

> Date: Wed, 22 Apr 2015 16:34:40 +1000
> From: Jie Gao <J....@sydney.edu.au>
> To: modperl@perl.apache.org
> Subject: Apache 2.4: How to get to "require" now?
> User-Agent: Mutt/1.5.21 (2010-09-15)
> 
> Hi 
> 
> Now that "ap_requires" is gone in Apache 2.4, "Apache2::RequestRec->requires" is also no longer available in mod_perl.
> 
> How do I get to things like "Require valid-user" now?
> 
> Regards,
> 
> 
> Jie