httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Schildbach <andr...@schildbach.de>
Subject [users@httpd] Subdomains just by creating a directory?
Date Thu, 03 Nov 2005 07:49:52 GMT
Hello everyone,

is it possible to configure Apache2 to serve the contents of a 
directory, in a way so the first level of the structure serves as the 
name of a subdomain?

For example:

foo.myhost.mydomain --> /var/www/foo/
bar.myhost.mydomain --> /var/www/bar/
bar.myhost.mydomain/path/ --> /var/www/bar/path/

I know I can do that with multiple VirtualHost configuration elements, 
but I'd like to add new subdomains just by creating a directory.

Regards,

Andreas


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message