Page 1 of 1

How to add SubDomains

PostPosted: 07. December 2004 02:02
by pharaoh
HI,

Just wanting to know how to add a subdoamin to current sites.
I have checked the postes but can find exactly what I need.

I have set up several sites with Vhost, can i just add a wildcard entry in Vhost or do i need to have it setup with DNS as well?

this what i have:
http://www.mydomain.com & http://mydomain.com

this is what i want:
http://subdomain.mydomain.com

Thanks

PostPosted: 07. December 2004 12:13
by Maller
I belive you need to setup a CNAME record with your subdomain
and then a virtual container looking like this

Code: Select all
NameVirtualHost *

<VirtualHost *>

DocumentRoot "c:/xampp/htdcos/dir"
ServerName subdomain.mydomain.com

# Other directives here

</VirtualHost>

PostPosted: 08. December 2004 01:38
by pharaoh
Maller,

Thanks

I thought that it might be somthing like that.
i'll set it and give it a go..

Cheers

PostPosted: 08. December 2004 01:44
by Kistler
how would i go about doing that