perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Foertsch <torsten.foert...@gmx.net>
Subject [PATCH] Apache2::RequestUtil->add_config
Date Fri, 06 Jan 2006 21:09:14 GMT
Hi,

the patch below solves the following situation.

The ProxyPassReverse directive is outside any <Location> block given as

  ProxyPassReverse /path http://...

but inside a Location block without the /path specification:

  <Location /path>
  ProxyPassReverse http://...
  </Location>

In the latter case the path is taken from $parms->path, that means the path of 
the Location block.

Since $r->add_config([@lines]) is literally a

  <Location />
  @lines
  </Location>

ProxyPassReverse cannot be applied with $r->add_config for a path other than 
"/".

The patch adds an optional 3rd parameter to $r->add_config that lets you pass 
in the path.

I don't think ProxyPassReverse is the only directive that behaves this way.

Torsten

Mime
View raw message