On Thu, 31 Aug 2000, martin langhoff wrote:
...
> As you may have imagined, it maybe trivial to do in Apache (I haven't
> done it yet, but I hope it is).
I usually do it with mod_rewrite. Something like
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.ek\.dk$
RewriteCond %{HTTP_HOST} ^(www\.)?[^.]+\.ek\.dk$
RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
RewriteRule ^(www\.)?([^.]+)\.ek\.dk(.*) /home/httpd/www.ek.dk/$2$3
should do the trick.
> What is not trivial is to trick BIND into saying it knows as
> many domains as folders I want. Or is it?
if you want only the right folders[tm], then you need to make a
little script that looks for the folders on disk (or in the database
or whatever) and exports it to a zone file.
If you just want everything, a wildcard record could do.
And you are right, neither of your (trivial ;-) ) problems has
anything to do with mod_perl.
- ask
--
ask bjoern hansen - <http://www.netcetera.dk/~ask/>
more than 70M impressions per day, <http://valueclick.com>