httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhixin li" <>
Subject Problem on virtual host by dbm
Date Wed, 05 Jun 2002 04:02:02 GMT
Hello, everyone

I'm trying virtual host on Apache and want
to use dbm to map url to local position.

But it seems dbm can't work well with apache.
The following is my httpd.conf:

RewriteEngine on

RewriteMap   lowercase  int:tolower

# define the map file
#RewriteMap   vhost      txt:/home/lzx/conf/
RewriteMap   vhost      dbm:/home/lzx/vhost

RewriteCond  ${lowercase:%{HTTP_HOST}}  ^(.+)$
# this does the file-based remap
RewriteCond  ${vhost:%1}                  ^(/.*)$
RewriteRule  ^/(.*)$                      %1/docs/$1

If I use, the url of
can be mapped into /home/lzx/docs correctly. But if I
use /home/lzx/vhost.db, apache does not any mapping.

The vhost.db is a NDBM created by dbmtool which I downloaded.
When I listed the content of the db by dbmtool, it is  /home/lzx  /home/wxd

It is samed as

Does any have experiment on that? I'm very anxious.

Much thanks.

Join the world’s largest e-mail service with MSN Hotmail.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message