[PLUG] Ownership of /var/www on Ubuntu 8.04
Richard C. Steffens
rsteff at comcast.net
Tue Nov 25 23:52:23 UTC 2008
Carlos Konstanski wrote:
> There are probably a lot of different answers to this question. My
> answer is to never use the default apache DocumentRoot directly.
> Instead, I always make VirtualHost directives that point to
> DocumentRoots that lie deeper than /var/www. For instance, here is my
> "default" web location on my workstation:
>
> <VirtualHost *:80>
> ServerName sphinktoo.pippiandcarlos.com
> ServerAdmin ckonstanski at pippiandcarlos.com
> DocumentRoot "/var/www/html/site/sphinktoo.pippiandcarlos.com"
> <Directory "/var/www/html/site/sphinktoo.pippiandcarlos.com">
> Options Indexes Includes FollowSymLinks ExecCGI
> AllowOverride Limit
> Allow from all
> Order allow,deny
> </Directory>
> </VirtualHost>
>
Does that replace the <VirtualHost *> in /etc/apache2/sites-available,
or is it added to that file?
> In gentoo, you get /var/www/html for free.
In Ubuntu you get /var/www with only an index.html file included.
> I built the rest of the
> path. /var/www/html is still owned by root on my system. So is
> /var/www/html/site. (There is a /var/www/html/users that gentoo
> provided for UserDir, but I have that disabled. I created the site/
> directory so that this directory level would remain uncluttered.)
> /var/www/html/site/sphinktoo.pippiandcarlos.com is the first directory
> in this tree that is owned by a normal user.
>
I think I understand the concept, and it even makes sense to me!
--
Regards,
Dick Steffens
More information about the PLUG
mailing list