httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] Subdomains just by creating a directory?
Date Thu, 03 Nov 2005 11:38:07 GMT
> -----Original Message-----
> From: Olaf van der Spek []
> Sent: Donnerstag, 3. November 2005 09:30
> To:
> Subject: Re: [users@httpd] Subdomains just by creating a directory?
> On 11/3/05, Boyle Owen <> 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.

 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 I missing something? Maybe a real example would make the problem clearer...

Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

Diese E-mail ist eine private und persnliche Kommunikation. Sie hat keinen Bezug zur B rsen-
bzw. Geschftst tigkeit der SWX Gruppe. This e-mail is of a private and personal nature. It
is not related to the exchange or business activities of the SWX Group. Le prsent e-mail est
un message priv  et personnel, sans rapport avec l'activit boursi re du Groupe SWX.
This message is for the named person's use only. It may contain confidential, proprietary
or legally privileged information. No confidentiality or privilege is waived or lost by any
mistransmission. If you receive this message in error, please notify the sender urgently and
then immediately delete the message and any copies of it from your system. Please also immediately
destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the intended recipient.
The sender’s company reserves the right to monitor all e-mail communications through their
networks. Any views expressed in this message are those of the individual sender, except where
the message states otherwise and the sender is authorised to state them to be the views of
the sender’s company.

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