Subdomains

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:
[at] xxx.xxx.xxx.xxx A
woodstock snoopy.com CNAME

woodstock:
[at] woodstock.snoopy.com CNAME

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

<VirtualHost *:80>
DocumentRoot "/var/www/woodstock/"
ServerName "woodstock.snoopy.com"
</VirtualHost>

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
<VirtualHost *:80>
DocumentRoot "/var/www/woodstock/"
ServerName "woodstock.com"
</VirtualHost>

Thank you!
Daicoden [ Sa, 06 Oktober 2007 14:01 ] [ ID #1838104 ]

Re: Subdomains

Post removed (X-No-Archive: yes)
Notifier Deamon [ Mo, 08 Oktober 2007 11:45 ] [ ID #1839296 ]

Re: Subdomains

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
Daicoden [ Di, 09 Oktober 2007 19:49 ] [ ID #1840234 ]

Re: Subdomains

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

<VirtualHost *>
....
</VirtualHost>

entries.
Floor
Floor [ Sa, 17 November 2007 16:43 ] [ ID #1873142 ]

Re: Subdomains

Sorry, too quick: just change the order of the separate VirtualHost _blocks_
Floor
Floor [ Sa, 17 November 2007 16:45 ] [ ID #1873143 ]
Webserver » alt.apache.configuration » Subdomains

Vorheriges Thema: mac address filtering
Nächstes Thema: redirecting