cname automatic redirection

Barry Margolin barmar at genuity.net
Fri Aug 10 18:23:40 UTC 2001


In article <9l18kj$q60 at pub3.rc.vix.com>, JuL <jul at 8-0.net> wrote:
>Hi,
>
>I would like to develop a new service on my web server to improve cname
>creation flexibility.
>In fact, I would like to automatically redirect a cname to a directory on my
>website.
>
>ex :
>
>http://whatever.website.com/ ==> http://www.website.com/whatever/
>with http://whatever.website.com/  visible in the visitor's browser.
>
>I don't know if I can do it automatically or not.
>Could you help me :)

In DNS, do:

whatever.website.com. IN CNAME www.website.com.

Then in the virtual host configuration of www.website.com, configure
whatever.website.com to go to $DocumentRoot/whatever.

For more information on this, I suggest you ask in a WWW newsgroup, it's
not really a DNS issue.

-- 
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