httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Schildbach <>
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.



The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message