From owner-freebsd-questions@FreeBSD.ORG Wed Dec 15 04:14:01 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B329C16A4CE for ; Wed, 15 Dec 2004 04:14:01 +0000 (GMT) Received: from blackwater.lemis.com (wantadilla.lemis.com [192.109.197.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD6A143D49 for ; Wed, 15 Dec 2004 04:13:59 +0000 (GMT) (envelope-from grog@lemis.com) Received: by blackwater.lemis.com (Postfix, from userid 1004) id 7205385665; Wed, 15 Dec 2004 14:43:57 +1030 (CST) Date: Wed, 15 Dec 2004 14:43:57 +1030 From: Greg 'groggy' Lehey To: Adam Message-ID: <20041215041357.GE862@wantadilla.lemis.com> References: <001d01c4e259$452536d0$0200a8c0@PANASONIULSWMR> <20041215035627.GD862@wantadilla.lemis.com> <004c01c4e25b$59bd5c60$0200a8c0@PANASONIULSWMR> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mu4SaHkdL1Az71rA" Content-Disposition: inline In-Reply-To: <004c01c4e25b$59bd5c60$0200a8c0@PANASONIULSWMR> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: freebsd-questions@FreeBSD.org Subject: Re: Use /var for storing webpages.. Why??? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Dec 2004 04:14:01 -0000 --mu4SaHkdL1Az71rA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tuesday, 14 December 2004 at 22:05:20 -0600, Adam wrote: > On Tuesday, 14 December 2004 at 21:50:45 -0600, Adam wrote: >>> In Greg Lehey's book "The Complete FreeBSD" 4th edition, he says, >>> "Do not have a separate /var file system unless you have a good idea >>> how big it should be. A good example might be a web server, where >>> (contrary to FreeBSD's recommendations) it's a good idea to put the >>> webpages on the /var file system." p.70 >>> >>> Why is it a good idea to put webpages in the /var file system and >>> not the /usr file system? >> >> Because they're not part of the system. Despite the name, /usr is >> mainly for the operating system. /var is for content that frequently >> varies. > > Okay, I understand not using /usr, but why not use /home?=20 /var is for content that frequently varies. That's its purpose. /home is for user home directories. > Does storing webpages in /var give you a performance increase? No. > Or is it convention that you would store webpages in /var? It's certainly a convention. > I'm setting up a webserver at my house where I'll serve several > websites for my friends, should I have them store webpages in > /var/username or keep them in /home/username? I suppose if you're in a multi-user environment where each user has his own web pages, it's better to have the users' web pages in his public_html directory. You can do this in either direction with symlinks. It's easy to read too much into these recommendations. I personally don't follow them. There are hysterical raisins behind that: I set up my original web server before I thought about the issue, and I've been too lazy to move. I *would* follow them with a new installation. My personal web pages are in my home directory, and http://wwww.lemis.com/grog/ (count those wwwws) is a symlink to ~grog/public_html. My externally visible web server is a colocated system which I share with a number of friends. They store the main web files in /var/www, but individuals have their web pages in a subdirectory of their home directory that matches the web site name (in my case, ~grog/www.lemis.com/). > BTW, awesome book. I love reading about the old RLL and MFM hard > drives I used to config when I was a kid. Brings back a lot of > memories. Thanks Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers. --mu4SaHkdL1Az71rA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBv7oFIubykFB6QiMRAvpvAJ42aAnzcndNOrRaIMLXX1GC9MtbrQCgsm5b vcy8wHgl/KAKUNX1FDIarHM= =s3ye -----END PGP SIGNATURE----- --mu4SaHkdL1Az71rA--