Re: [Hampshire] Apache2 configuration

Top Page

Reply to this message
Author: john lewis
Date:  
To: hampshire
Subject: Re: [Hampshire] Apache2 configuration
On Mon, 2 Apr 2007 13:21:50 +0100
Hugo Mills <hugo@???> wrote:

>
> > I had edited /etc/apache2/sites-available/default so it reads
> > >
> > DocumentRoot /home/jayell/public_html/exodus
> > >
> > <Directory /home/jayell/public_html/exodus>


>    I think a bit more of the config file is necessary to debug this
> entirely, but: DocumentRoot is the directory on your filesystem
> which maps to the *root* of your website. Thus, if you have

>
> DocumentRoot /home/jayell/public_html/exodus
> <Directory /home/jayell/public_html/exodus>
> ...
> </Directory>
>
> you will find that http://localhost/ will show the contents of the
> exodus directory, and you won't be able to see the other contents of
> /home/jayell/public_html.
>
>    If you want to map /home/jayell/public_html to the web root, then
> use that path, and your exodus directory will appear under
> http://localhost/exodus.

>
>    If you want something more complex (/var/www maps to the document
> root, but /home/jayell/public_html/exodus appears in
> http://localhost/exodus, say), then this can be done as well -- but
> I won't go into it unless you want that configuration.


thinking about this on my way to B&Q I realised that including
'exodus' is probably wrong and
'DocumentRoot /home/jayell/public_html' is more correct as it
would allow any other websites to be included under public_html.


--
John Lewis
Debian Linux with Geneweb genealogy application