You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Darrel Austin <da...@visi.com> on 2002/01/15 06:34:19 UTC

newbie question: where should VH directories go?

I have a really basic question.

Is there a rule-of-thumb as to where virtualhost directories should 
be placed on a linux box running apache? I noticed that Apache 
defaults to the VAR partition, but it seems to make more sense to me 
to create separate user directories in the USR partition and have the 
virtual hosts point there. Is there a right/wrong way to organize 
that?

-Darrel

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: newbie question: where should VH directories go?

Posted by Mark Constable <ma...@renta.net>.
On Tue, 15 Jan 2002 15:34, Darrel Austin wrote:
> I have a really basic question.
>
> Is there a rule-of-thumb as to where virtualhost directories should
> be placed on a linux box running apache? I noticed that Apache
> defaults to the VAR partition, but it seems to make more sense to me
> to create separate user directories in the USR partition and have the
> virtual hosts point there. Is there a right/wrong way to organize
> that?

Not really. Different distros put them in different places.
There might be an emerging standard but it's not obvious
to me yet. Fortunately you can arrange to put them wherever
you like. Debian uses "/var/www".

/var is for variable files, stuff that changes a lot, /usr
is for static user (non-system specific) files and data that
does not change so much. The idea partly being that /usr can
be mounted via NFS (or whatever) and shared between any number
of servers whereas as /var would remain only locally visible
to each box for it's own variable files, like /var/log.

One scheme for vhosts is simply, for example,

 /var/www/vhosts/some.domain.org
 /var/www/vhosts/some.other.org

--markc

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: newbie question: where should VH directories go?

Posted by Herb Stein <he...@herbstein.com>.
----- Original Message -----
From: "Darrel Austin" <da...@visi.com>
To: <us...@httpd.apache.org>
Sent: Monday, January 14, 2002 11:34 PM
Subject: newbie question: where should VH directories go?


> I have a really basic question.
>
> Is there a rule-of-thumb as to where virtualhost directories should
> be placed on a linux box running apache? I noticed that Apache
> defaults to the VAR partition, but it seems to make more sense to me
> to create separate user directories in the USR partition and have
the
> virtual hosts point there. Is there a right/wrong way to organize
> that?
>
> -Darrel

Darrel-

I don't know about everyone else out here, but all of my virtuals are
in
their own home directory. Like /home/herb/www for example. They
can then easily ftp in and update things, etc. I also don't have
separate
partitions either. One HD for me is one partition - / (except for swap
of course).

YMMV

> --------------------------------------------------------------------
-
> The official User-To-User support forum of the Apache HTTP Server
Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
--
Herb Stein
The Herb Stein Group
www.herbstein.com
herb@herbstein.com
314 952-4601



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: newbie question: where should VH directories go?

Posted by Matthew Daubenspeck <ma...@oddprocess.org>.
At 11:34 PM 1/14/2002 -0600, you wrote:
>I have a really basic question.
>
>Is there a rule-of-thumb as to where virtualhost directories should be 
>placed on a linux box running apache? I noticed that Apache defaults to 
>the VAR partition, but it seems to make more sense to me to create 
>separate user directories in the USR partition and have the virtual hosts 
>point there. Is there a right/wrong way to organize that?
>
>-Darrel

It honestly doesn't matter. I have multiple virtual hosts in 
/var/www/hostname that are considered untouchable by any user other then 
myself. I also have other virtual hosts that are for users that are all 
located in /home/username/webpage.

I think as long as you decide how you want to do it and stick with the 
scheme, you should be fine.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org