DNS entry

pierre at gxist.com pierre at gxist.com
Tue May 7 19:22:36 UTC 2002


Hi all, 

I make apache 1.3.24 with all module on a RH7.2.
I want to redirect the url www.server.com/~user to www.user.server.com
so i write in httpd.conf :

 RewriteEngine on
 RewriteCond   %{HTTP_HOST}                 ^www\.[^.]+\.server\.com$
 RewriteRule   ^(.+)                        %{HTTP_HOST}$1
[C]
 RewriteRule   ^www\.([^.]+)\.server\.com(.*) /home/$1/www/$2

and I have 

UserDir /home/*/www

<VirtualHost xxx.xxx.xxx.xxx>
ServerAdmin webmaster at serveur.com
DocumentRoot /home/xxx/www
ServerName www.serveur.com
ServerAlias serveur.com
CustomLog logs/serveur-access_log combined
ScriptAlias /cgi-bin/ /home/xxx/cgi-bin/
</VirtualHost> 

but when I go to www.user.server.com apache display the document root
of the server.
I think I must have a DNS entry in the DNS server for
www.user.server.com 
But what is the file and the line to write ?
Thanks for your responses and excuse me for my bad english ;) 

Pierre



More information about the bind-users mailing list