Re: serve items in "lib" or "PATH" fashion

Perrin Harkins <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <CAC0_be2vBy5yuXbVbJ4_g0fE9rhFu_mM6KH8qxHAeb79gcqLvw@mail.gmail.com>
On Tue, Jan 17, 2012 at 4:31 AM, André Warnier <[email protected]> wrote:
> E.g. I would be happy if I could write this in the Apache configuration :
>
> ScriptAlias /cgi-bin/ /var/www/site1/cgi-bin/;/var/www/global/cgi-bin/
>
> and have Apache look first in the local one, then in the global one each
> time it is looking for a given script.  And similarly for other documents
> like javascript libraries.

Use mod_rewrite.  See "Search pages in more than one directory":
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

- Perrin
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.