View Single Post
Old 04-20-2004, 12:41 PM  
alex79
Confirmed User
 
Join Date: Jun 2002
Location: france
Posts: 996
vhosts and unlimited subdomains

want to configure virtual hosts so that I can create new and unlimited subdomains simply by creating a new directory in the file system. I know this is possible but i don't know how to do it

EXAMPLE
-------------------------------------------
/var/www/html/www/index.html
can be accessed at
http://www.domain.com/index.html

/var/www/html/www/sub1/index.html
can be accessed at
http://sub1.domain.com/index.html

/var/www/html/www/sub2/index.html
can be accessed at
http://sub2.domain.com/index.html
-------------------------------------------

I have looked at the Apache docs on mod_vhost_alias, but haven't found a concrete example of what I am looking for. If anyone has done something similar, I would appreciate any help you could give.
alex79 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote