On Wed, 1 Dec 1999, Jason Bodnar wrote:

> Date: Wed, 01 Dec 1999 16:19:06 -0600 (CST)
> From: Jason Bodnar <[EMAIL PROTECTED]>
> To: mod_perl list <[EMAIL PROTECTED]>
> Subject: conf file precedence
> 
> I have the following in my conf file:
> 
> # Framed applications
> ProxyPass /frames http://sw3.tivoli.com:81/frames
> ProxyPassReverse /frames http://sw3.tivoli.com:81/frames
> 
> # Begin Apache::ProxyStuff stuff
> PerlModule Apache::ProxyStuff
> 
> <Location />
> SetHandler      perl-script
> PerlHandler     Apache::ProxyStuff
> PerlSetVar      HeaderFile      /includes/home_top_table.html
> PerlSetVar      FooterFile      /includes/footer.html
> PerlSetVar      BodyAttributes  "TOPMARGIN=0 LEFTMARGIN=0 MARGINHEIGHT=0
> MARGINWIDTH=0"
> PerlSetVar      ProxyPrefix http://sw3.tivoli.com:81
> </Location>
> 
> (Apache::ProxyStuff is similar to Apache::Sandwich but it gets files from
> remote servers and allows you to mess with the content. Once we put it into
> production and I get approval from the higher ups I'm going to make it
> available on CPAN.)
> 
> The problem I've run into is even though I've set up ProxyPass rules for
> /frames it's getting handled by Apache::ProxyStuff. I though apache would apply
> the most specific rule (in this case /frames over /) but that doesn't seem to
> be happening. I tried moving the ProxyPass stuff to the end of the file in
> hopes it would take the last rule that applied but that didn't work either.

Jason:

I noticed this behavior in Apache_1.3.6-modperl_1.21.  I worked around it
by specifying 

        <Location /> ... </Location> 

before

        <Location /frames> ... </Location>

-timmo

-- 
-------------------------------------------------------------------
Tim DiLauro                          Milton S. Eisenhower Library
Library Systems Jack                 Johns Hopkins University
(410) 516-5263                       3400 N. Charles Street
[EMAIL PROTECTED]                        Baltimore, MD  21218
-------------------------------------------------------------------

Reply via email to