httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Ralf S. Engelschall)
Subject Re: NOT A BUG!!! New Function: SearchRules for Alias/ScriptAlias
Date Thu, 04 Dec 1997 09:05:45 GMT

In article <> you wrote:
> According to Rob Hartill:

>>  So if the script is modified for the customer it can be placed into
>>  '/users/www/customer-bin/' the rest leave in '/users/www/default-bin/'

> This is also possible with mod_rewrite I think.

Sure, the only thing you have to know is what type of URL determines the
"customer" user. For instance when suing a virtual host for "customer" just
use the following ruleset to fall back to the default-bin dir from his

    RewriteEngine on
    RewriteCond   /users/www/customer-bin/$1  -f
    RewriteRule   ^/cgi-bin/(.+)  /users/www/customer-bin/$1 \
    RewriteRule   ^/cgi-bin/(.+)  /users/www/default-bin/$1  \

When combinded with a per virtual host defined variable (SetEnv)
you can put this ruleset in the main server and let the virtual ones
just inherit these rules.

                                       Ralf S. Engelschall

View raw message