mod_perl2 handler hell

Discussion in 'Apache' started by foobar, Apr 2, 2007.

  1. #1
    Hi,

    Im struggling with mod_perl handlers. I;ve been playing with this for a few days now and feel like I'm just going around in circles :(

    I have a PerlResponseHandler set in a location match directive:

    <LocationMatch "/">
    PerlResponseHandler MySite::Module
    </LocationMatch>

    I also have a PerlAccessHandler in a LocationMatch directive

    <LocationMatch "/gallery">
    PerlAccessHandler MySite::Gallery
    </LocationMatch>

    I just cannot get this to work. In essence, what I want to happen is....

    if the request is /gallery then I do not wish to call the Response handler but it seems like it is always called.

    Is there any way to stop the "/" being matched if the uri =~ /^\/gallery/

    Any help greatly appreciated.
     
    foobar, Apr 2, 2007 IP