[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [pkg-lighttpd] Changing the default document root for HTTP server



On Monday 16 April 2012, Olaf van der Spek wrote:
> On Sun, Apr 15, 2012 at 5:49 PM, Arno Töll <arno@debian.org> wrote:
> >> I'd use ht instead of html. Not every ht file is a html file.
> > 
> > I have no strong opinion on the actual name, as long as it is
> > another subdirectory. We could equally use /var/www/default,
> > /var/www/htdocs or whatever we feel like.
> 
> What about vhosts?
> Defining a standard for vhosts would solve the problem without
> having to touch the normal doc root. Seems like a far simpler fix.

The new document root is supposed to be the default vhosts document 
root (there is no need to distinguish between default vhost and no 
vhost). Other vhosts can be put in other sub directories in /var/www/, 
like /var/www/www.example.com or /var/www/vhosts/example.com/htdocs, 
just like the admin prefers it.

In this regard, /var/www/default would be the most logical name, IMHO. 
But we thought that not inventing yet another docroot directory name 
would be better, and therefore suggested /var/www/html. But the actual 
name does not matter, as long as it's a sub directory of the directory 
for all vhosts.

Suexec's compiled-in document root would stay at /var/www so that it 
would include all vhost document roots. And dspam-webfrontend could 
keep its files in /var/www/dspam, inside suexec's document root, 
without polluting the default document root.


Reply to: