Subdomains

Subdomains

am 06.10.2007 14:01:13 von Daicoden

Hi!

I was wondering what you have to do in order to have a domain1 point
to subdomain.domain2.

I have woodstock.com and I would like that to point to
woodstock.snoopy.com

My DNS is configured like...

snoopy:
@ xxx.xxx.xxx.xxx A
woodstock snoopy.com CNAME

woodstock:
@ woodstock.snoopy.com CNAME

my apache configuration in 01_woodstock_vhost.conf on the machine that
hosts snoopy is


DocumentRoot "/var/www/woodstock/"
ServerName "woodstock.snoopy.com"


I can visit woodstock.snoopy.com and it works great! However
woodstock.com takes me to snoopy.com NOT woodstock.snoopy.com

I'm not sure what to do next I tried doing something like this... but
I don't know where to go next

DocumentRoot "/var/www/woodstock/"
ServerName "woodstock.com"


Thank you!

Re: Subdomains

am 08.10.2007 11:45:11 von unknown

Post removed (X-No-Archive: yes)

Re: Subdomains

am 09.10.2007 19:49:08 von Daicoden

No luck, still redirects to snoopy.com... I have woodstock.snoopy.com
and woodstock.com in my vhost file.

Thanks for the thought though! Do I need to do something special with
my DNS? I got it to semi work using a frame (one of the options in my
dns configuration), but I'd really like to change that!

Thanks,

Matt

Re: Subdomains

am 17.11.2007 16:43:27 von Floor

Daicoden:

> No luck, still redirects to snoopy.com... I have woodstock.snoopy.com
> and woodstock.com in my vhost file.

You might change the order of the


....


entries.
Floor

Re: Subdomains

am 17.11.2007 16:45:05 von Floor

Sorry, too quick: just change the order of the separate VirtualHost _blocks_
Floor