Hi.
I am writing a new PerlAuthHandler module.
It is working fine in most cases, but..
In an attempt at being clever, I put the following code in the handler :
unless ($r->is_initial_req) {
if (defined $r->prev) {
# we are in a subrequest. Just copy user from main reque
On Sun 12 Oct 2008, André Warnier wrote:
> In an attempt at being clever, I put the following code in the
> handler :
>
> unless ($r->is_initial_req) {
> if (defined $r->prev) {
> # we are in a subrequest. Just copy user from main
> request. $r->user( $r->prev->user );
>
Quoting valerio crini <[EMAIL PROTECTED]>:
Hallo,
I'm trying to use modperl2's feature 'auto configuration' but without
success.
Manual says in
http://perl.apache.org/docs/general/testing/testing.html#Auto_Configuration
that in order to add automatically new items to location is necessary
add
Torsten,
Many thanks for the excellent information, I will ponder that.
More below, but one more question here :
Where does $r->internal_redirect "live" (in which package) ?
I am having trouble finding it.
Torsten Foertsch wrote:
On Sun 12 Oct 2008, André Warnier wrote:
In an attempt at being
Hi.
Still around a new perl AAA module I'm writing, a question :
If I have a Location like so :
SetHandler jakarta-servlet
SetEnvIf REQUEST_URI "\.(htm|web|css|gif|jpg|js|html?)$" no-jk
PerlXXXHandler My::Module->some_method
...
("jakarta-servlet" above means mod_jk --> Tomcat)
(
André Warnier wrote:
Torsten,
Many thanks for the excellent information, I will ponder that.
More below, but one more question here :
Where does $r->internal_redirect "live" (in which package) ?
I am having trouble finding it.
http://perl.apache.org/docs/2.0/api/Apache2/SubRequest.html#C_inte
Adam Prime wrote:
http://perl.apache.org/docs/2.0/api/Apache2/SubRequest.html#C_internal_redirect_
Thanks.
Although considering Torsten previous answer and explanation, that's
kind of an odd place, no ? ;-)
[...]
It seems odd to me to set $r->user in an AccessHandler. It's probably
not
On Sun 12 Oct 2008, André Warnier wrote:
> I have a little question related to the above, but not very urgent :
> why the check on the configuration change ? what can change between a
> request and a sub-request (or internal redirect) ?
Suppose this:
Require group foo
Require group bar
If d
Torsten Foertsch wrote:
[...]
And I don't think that Apache will skip the mod_perl AAA phases, will
it ?
Yes, mod_perl handlers are called inside these ap_run_... functions.
ap_run_access_checker() is the first of the 3 A's. A PerlAccessHandler
is called from this function.
Thanks again fo