Re: Apache 2 + mod_perl + virtual host problems

[prev] [thread] [next] [Date index for 2005/02/22]

From: Bruno Lavoie
Subject: Re: Apache 2 + mod_perl + virtual host problems
Date: 04:41 on 22 Feb 2005
hummmmmmm

i tried to hack the code in RegistryCooker.pm and i saw that the files
differ from FreeBSD to Debian

let's look

Freebsd:

/usr/local/lib/perl5/site_perl/5.8.6/mach/Apache2/ModPerl/RegistryCooker.pm
sub can_compile {
    my $self = shift;
    my $r = $self->{REQ};

    unless (-r $r->my_finfo && -s _) {
        $self->log_error("$self->{FILENAME} not found or unable to stat");
        return Apache::NOT_FOUND;
    }

    return Apache::DECLINED if -d _;


Debian:
/usr/lib/perl5/Apache2/ModPerl/RegistryCooker.pm
sub can_compile {
    my $self = shift;
    my $r = $self->{REQ};

    unless (-r $r->filename && -s _) { 
        $self->log_error("$self->{FILENAME} not found or unable to stat"); 
        return Apache::NOT_FOUND; 
    }


HUMMMMMMMMMMMMM that's not the same source, but i dont really
understand, the mod_perl is the same version for the to systems......!
mod_perl/1.999.20

why on one it's $r->filename and on the other one is it $r->my_finfo ?????

should I notice the Debian Guys to change it or not ?
is it safe to play in this code? when i'll update my packages, i'll
lost the change....

thanks to you Stas for the tricks.. but... this is a problem.... will
others like this one surprise me?

thanks for all the help! 
Bruno Lavoie

(message missing)

Apache 2 + mod_perl + virtual host problems
Bruno Lavoie 13:40 on 21 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Bruno Lavoie 14:58 on 21 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Perrin Harkins 18:13 on 21 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Bruno Lavoie 18:31 on 21 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Perrin Harkins 18:38 on 21 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Stas Bekman 01:39 on 22 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Bruno Lavoie 15:11 on 21 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Perrin Harkins 18:09 on 21 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Bruno Lavoie 18:54 on 21 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Perrin Harkins 19:42 on 21 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Stas Bekman 01:49 on 22 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Bruno Lavoie 02:28 on 22 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Stas Bekman 02:40 on 22 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Bruno Lavoie 02:53 on 22 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Bruno Lavoie 04:41 on 22 Feb 2005

Generated at 12:48 on 22 Feb 2005 by mariachi v0.52