From owner-freebsd-questions Mon Oct 7 19:17:49 2002 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 B755237B401 for ; Mon, 7 Oct 2002 19:17:47 -0700 (PDT) Received: from mail.gbronline.com (mail.gbronline.com [12.145.226.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2186743E3B for ; Mon, 7 Oct 2002 19:17:47 -0700 (PDT) (envelope-from daleco@daleco.biz) Received: from DaleCoportable [12.145.236.206] by mail.gbronline.com (SMTPD32-7.13) id AFFD89470272; Mon, 07 Oct 2002 21:16:29 -0500 Message-ID: <028901c26e70$0a5bb510$fa00a8c0@DaleCoportable> From: "DaleCo, S.P.---'the solutions people'" To: Cc: Subject: Fw: directory structuer for a web server Date: Mon, 7 Oct 2002 21:11:39 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Well, I hope we got that right..."send" went off before I'm ready.... KDK From: "DaleCo, S.P.---'the solutions people'" To: Cc: Sent: Monday, October 07, 2002 9:09 PM Subject: Re: directory structuer for a web server > From: "Kirk Bailey" > Subject: Re: directory structuer for a web server > > > > > > > > where should one properly place the directory for the web pages > in a web > > > server, > > > and is there a standard name for it? I have a box with several > domains > > > in it, so > > > I created /www off of root, ant /www/www.foo.foo for each domain > > > under /www but > > > I suspect this is not a standard solution. Any advice? > > > Your option sounds as valid as mine or most any other. Some other > layouts I've seen have a seperate partition for /home, so the > virtual- > hosted dirs are /home/clientname. > > I'm not a security guru, so my reason is not based on security, but > I wouldn't go off of / on my box because / is generally a much > smaller > partition; on most of my boxes /usr is 20x or more the size of the > rootdir. > I config apache to /usr/local/www/ and use name based VirtualHosts. > So, the server's main pages are addressed at /usr/local/www/htdocs, > and each > virt-hosted client is at /usr/local/www/htdocs/clientabbreviation. > Of course, > I guess if I get too many more clients, this could become clunky. > > I link /usr/local/www/htdocs to /www, and each client folder to > /clientabbreviation, > so one relatively short command line gets me anywhere I'd like to be. > I do tend to be careful that folks aren't putting ".." links or > commands > in their dirs or scripts...although this shouldn't create problems, > because a > ".." command should go to /usr/local/www/htdocs, I'm pretty paranoid, > because, as I said, I'm not a guru when it comes to security... > > HTH, > > Kevin Kinsey, DaleCo, S.P. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message