How to add SubDomains

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How to add SubDomains

Postby pharaoh » 07. December 2004 02:02


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

this is what i want:

Posts: 6
Joined: 24. December 2003 05:05

Postby Maller » 07. December 2004 12:13

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"

# Other directives here

User avatar
Posts: 49
Joined: 06. March 2004 14:47

Postby pharaoh » 08. December 2004 01:38



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

Posts: 6
Joined: 24. December 2003 05:05

Postby Kistler » 08. December 2004 01:44

how would i go about doing that
Posts: 4
Joined: 13. November 2004 14:46

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 71 guests