Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Subdomains

0 views
Skip to first unread message

Daicoden

unread,
Oct 6, 2007, 8:01:13 AM10/6/07
to
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

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

Message has been deleted

Daicoden

unread,
Oct 9, 2007, 1:49:08 PM10/9/07
to
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

Floor

unread,
Nov 17, 2007, 10:43:27 AM11/17/07
to
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

unread,
Nov 17, 2007, 10:45:05 AM11/17/07
to
Sorry, too quick: just change the order of the separate VirtualHost _blocks_
Floor


0 new messages