DNS entry

Barry Margolin barmar at genuity.net
Tue May 7 19:30:22 UTC 2002


In article <ab99n3$7o5n$1 at isrv4.isc.org>,  <pierre at gxist.com> wrote:
>
>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 

If you connected to the right machine, then the DNS entry is correct.  The
DNS entry gets you to the server, and then the VirtualHost configuration
should get you to the directory.

I suggest you ask in comp.infosystems.www.servers.unix to find out what you
did wrong.

-- 
Barry Margolin, barmar at genuity.net
Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.


More information about the bind-users mailing list