I'm a little confused. And was wondering if I could
get a sanity check..

I have a mod perl method handler and at start it runs
this code

my $is_initial_req = $r->is_initial_req;
    my $is_main = $r->is_main;
    my $main = $r->main;
    my $proxyreq = $r->proxyreq;

    print STDERR
Dumper('is_initial_req',$is_initial_req,'is_main',$is_main,'main',$main,'proxyreq',$proxyreq)
if $DEBUG;

I am running a system which has embperl installed
using this:-

<FilesMatch "epl$|wml$|pgp$|html$">
  SetHandler  perl-script
  PerlHandler Embperl
  Options     ExecCGI FollowSymLinks
</FilesMatch>

And My handler is called using this

<Location /logout>
    setHandler perl-script
    PerlModule My::Apache::Authen::Cookie
    PerlHandler My::Apache::Authen::Cookie->logout
</Location>

I also have a second 'control' instance of this
handler installed purely for this debugging

<Location /logout2>
    setHandler perl-script
    PerlModule My::Apache::Authen::Cookie
    PerlHandler My::Apache::Authen::Cookie->logout
</Location>

Finally there is a directory under my document root
called /logout/ which contains old Embperl scripts I'm
superceding with my handler (so would be found on a
FilesMatch).

The question I have is this.:-

When I visit /logout I get the following Dumped
information from my handler:-

$VAR1 = 'is_initial_req';
$VAR2 = '0';
$VAR3 = 'is_main';
$VAR4 = 1;
$VAR5 = 'main';
$VAR6 = undef;
$VAR7 = 'proxyreq';
$VAR8 = '0';

But when I visit /logout2 I get the following:-

$VAR1 = 'is_initial_req';
$VAR2 = 1;
$VAR3 = 'is_main';
$VAR4 = 1;
$VAR5 = 'main';
$VAR6 = undef;
$VAR7 = 'proxyreq';
$VAR8 = '0';

Why is is_initial_req consistently 0 for logout and
consistently 1 for logout2...

I tried swapping the order of the FilesMatch and the
Location configs in my httpd.conf but this made no
difference...

So can anybody clear up this mystery for me?

Kind regards

Marty



                
___________________________________________________________ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

Reply via email to