httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Ralf S. Engelschall)
Subject Re: Virtual Hosting w/ mod_rewrite \(complete solution\?\)
Date Fri, 27 Feb 1998 11:35:04 GMT

In article <> you wrote:

> On Thu, 26 Feb 1998, Brian Atkins wrote:

>> We have ours set up to deal with our subdomains instead of
>> type names (i.e. This
>> way we do not need a config file like this that may take
>> up a lot of mem in each process (we have over 11k vhosts now
>> on one box). It would also be nice to be able to use mod_rewrite
>> for our regular vhosts as well- perhaps you could
>> develop a combo ruleset that would cover both types of vhosts-
>> one using a map file and one without?

> You can probably do multiple domains without everything in memory too...
> aren't there file test operators in mod_rewrite?  'cause you could
> just make sure to rewrite domains that had directories on disk.

Yes, good idea. You can use something like
   RewriteCond /path/to/vhosts/${lowercase:%{HTTP_HOST}} -d
   RewriteRule ...

this rewrites only when the dir /path/to/vhosts/ exists.

> Yeah that's what it does.  You should check it out to make sure it does
> everything you need.  It's "UseCanonicalName on" actually, the default is
> off (to preserve backwards compatibility). 

Ops, yes, I've forgot the "on". Fixed in my config now. Thanks for the hint.

                                       Ralf S. Engelschall

View raw message