I have always used wildcards (see mass-virtual hosting in the apache docs). Never failed.On 11/3/05, Rich Bowen <
[EMAIL PROTECTED]> wrote:-BEGIN PGP SIGNED MESSAGE-Hash: SHA1
Andreas Schildbach wrote:> Hello everyone,>> is it possible to configure Apache2 to serve the contents of a> direct
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andreas Schildbach wrote:
> 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 --
On 11/3/05, Boyle Owen <[EMAIL PROTECTED]> wrote:
> > See his first example. The subdomain is foo, not bar.
>
> So what? foo.myhost.mydomain is a separate VirtualHost so it has a different
> DocumentRoot (/var/www/foo/). So http://foo.myhost.mydomain/wibble/ -->
> /var/www/foo/wibble...
>
> Am
> -Original Message-
> From: Olaf van der Spek [mailto:[EMAIL PROTECTED]
> Sent: Donnerstag, 3. November 2005 09:30
> To: users@httpd.apache.org
> Subject: Re: [EMAIL PROTECTED] Subdomains just by creating a directory?
>
>
> On 11/3/05, Boyle Owen &
On 11/3/05, Boyle Owen <[EMAIL PROTECTED]> 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
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Andreas Schildbach
> Sent: Donnerstag, 3. November 2005 08:50
> To: users@httpd.apache.org
> Subject: [EMAIL PROTECTED] Subdomains just by creating a directory?
>
>
> Hello everyone,
>
&g
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/ --> /va