httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhixin li" <lzx0...@hotmail.com>
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/vhost.map
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 vhost.map, the url of lzx.domain.com
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

lzx.domain.com  /home/lzx
wxd.domain.com  /home/wxd

It is samed as vhost.map.

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

Much thanks.

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message