You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Olaf van der Spek <ol...@gmail.com> on 2005/11/03 09:29:37 UTC

Re: [users@httpd] Subdomains just by creating a directory?

On 11/3/05, Boyle Owen <Ow...@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.