Re: Same script with different locations

Torsten Förtsch <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Sunday, May 29, 2011 19:40:59 cfaust-dougot wrote:
> I wanted to know if there was anything wrong with using the same MP2
> content handler with multiple Location directives in apache and using
> $r->location() to determine the script that should be used in forms,
> redirects etc.

Nothing wrong with it. But be careful, the administrator can try to 
configure it like:

  <Location ~ "(something|special)/">

or

  <LocationMatch ...>

I am not 100% sure but I think $r->location will contain "(something|
special)/" in that case.

Torsten Förtsch

-- 
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.