httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olaf van der Spek <olafvds...@gmail.com>
Subject Re: [users@httpd] Subdomains just by creating a directory?
Date Thu, 03 Nov 2005 08:29:37 GMT
On 11/3/05, Boyle Owen <Owen.Boyle@swx.com> wrote:
> > foo.myhost.mydomain --> /var/www/foo/
> > bar.myhost.mydomain --> /var/www/bar/
> > bar.myhost.mydomain/path/ --> /var/www/bar/path/
>
> I don't see the problem. This is exactly what apache does by default. The DocumentRoot
directive maps the base URL of the site (bar.myhost.mydomain) onto a filesystem path (/var/www/bar)
then any additional path information in the URL is simply appended to the DocumentRoot (bar.myhost.mydomain/path/
--> /var/www/bar/path/)
>
> What have you tried? What went wrong? (include error-log messages)...

See his first example. The subdomain is foo, not bar.
Mime
View raw message