you want:

sub handler {
    my $r = shift;
    my $uri = $r->uri;
    return DECLINED if $url =~ /^\/gallery;

    # not a gallery request... do some stuff and return an XML document

}

-----Original Message-----
From: foobar [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 02, 2007 11:58 AM
To: modperl@perl.apache.org
Subject: RE: mod_perl2 handler headache



Adam Prime x443 wrote:
> 
> 
> That looks ok to me.  Is there a ResponseHandler as well for the
> gallery, or just the AccessHandler?
> 
> The symptoms you're describing seem like OK is getting returned when
no
> content has been printed.  Do you know if headers are even getting
sent
> with these requests?
> 
> adam
> 
> 
> 

Hi,

There is no ResponseHandler for the gallery, only for the main site.
This
problem must be something to do with the interaction with the response
handler for the virtual host. If I request an image from
www.defaultservername.com/gallery/foo.jpg it works just fine but from
www.namedvhost.com/gallery/foo.jpg doesnt :(

The ResponseHandler for the named virtual host is too large to post here
but
in short...

sub handler {
    my $r = shift;
    my $uri = $r->uri;
    return OK if $url =~ /^\/gallery;

    # not a gallery request... do some stuff and return an XML document

}
-- 
View this message in context:
http://www.nabble.com/mod_perl2-handler-headache-tf3506042.html#a9793569
Sent from the mod_perl - General mailing list archive at Nabble.com.

Reply via email to