From owner-freebsd-questions Tue Oct 8 17:33:52 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 6980A37B401 for ; Tue, 8 Oct 2002 17:33:49 -0700 (PDT) Received: from mail2.uits.uconn.edu (mail2.uits.uconn.edu [137.99.25.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EDD943E7B for ; Tue, 8 Oct 2002 17:33:48 -0700 (PDT) (envelope-from matt@forsetti.com) Received: from d80h149.public.uconn.edu (d80h149.public.uconn.edu [137.99.80.149]) by mail2.uits.uconn.edu (8.11.6/8.11.6) with ESMTP id g990Xd426749; Tue, 8 Oct 2002 20:33:39 -0400 Subject: Re: directory structuer for a web server From: Matt Smith To: Kirk Bailey Cc: "freebsd-questions@freebsd.org" In-Reply-To: <3DA2584F.A6A03C70@netzero.net> References: <200210072125.g97LPgf07798@clunix.cl.msu.edu> <3DA2584F.A6A03C70@netzero.net> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 08 Oct 2002 20:33:34 -0400 Message-Id: <1034123614.8978.5.camel@localhost> Mime-Version: 1.0 X-MailScanner: Found to be clean 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 I have always like the DNS style layout: /www <-- dedicated file system /www/com/ /www/com/mycomdomain <-- website for mycomdomain.com /www/org/ /www/org/myorgdomain <-- website for myorgdomain.org ... etc ... this filesystem matches DNS, and LDAP (for authentication and other info), which makes for some neat scripting possibilities.... -Matt On Tue, 2002-10-08 at 00:00, Kirk Bailey wrote: > I can indeed imagine the aspirin bill. With my approach, it is systematic, each > domain has it's own cgi-bin directly under it's web dir, and the server will > not permit access to anything other than the root directory for that domain, and > it's cgi-bin. > > However, now I am writing a application for other people's web servers, it > behooves me to learn of the fetishes of other people. > > oh- the item in question: > http://www.tinylist.org/ > > Jerry McAllister wrote: > > > > > > > > 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? > > > > Not bad. Really, the only thing that matters is keeping them > > in a way that makes sense and makes it easy to keep them apart > > and easy to address. > > > > Mayn of our servers host several domains and almost al of these have > > a virtual host web page. We create an account for most of our virtual > > hosts (because there is a different person working on the web page > > for each) and then the home page for each virtual host then gets put > > in the directory 'web' in each of those home directories. > > > > eg ~accoutn_homedir/web/index.html" or whatever > > > > For the servers themselves we follow a convention of installing > > Apache in '/usr/local/web/...' > > Everything, from binaries to config files to logs all fall under that. > > The only thing outside of that is the "apache.sh" in "/usr/local/rc.d" > > The servers own web pages start in "/usr/local/web/documents" > > > > I have seen some really convoluted setups with bits an pieces > > strung out in /usr/sbin/... and /etc/... and other places. > > I can only imagine the annoyance of managing those. > > > > ////jerry > > > > > > > > -- > > > > > > end > > > > > > Respectfully, > > > Kirk D Bailey > > > > > > > > > +---------------------"Thou Art Free." -Eris-----------------------+ > > > | http://www.howlermonkey.net mailto:highprimate@howlermonkey.net | > > > | KILL spam dead! http://www.scambusters.org/stopspam/#Pledge | > > > | http://www.tinylist.org +--------+ mailto:grumpy@tinylist.org | > > > +------------------Thinking| NORMAL |Thinking----------------------+ > > > +--------+ > > > ------------------------------------------- > > > Introducing NetZero Long Distance > > > Unlimited Long Distance only $29.95/ month! > > > Sign Up Today! www.netzerolongdistance.com > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message > > > > > -- > > end > > Respectfully, > Kirk D Bailey > > > +---------------------"Thou Art Free." -Eris-----------------------+ > | http://www.howlermonkey.net mailto:highprimate@howlermonkey.net | > | KILL spam dead! http://www.scambusters.org/stopspam/#Pledge | > | http://www.tinylist.org +--------+ mailto:grumpy@tinylist.org | > +------------------Thinking| NORMAL |Thinking----------------------+ > +--------+ > ------------------------------------------- > Introducing NetZero Long Distance > Unlimited Long Distance only $29.95/ month! > Sign Up Today! www.netzerolongdistance.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message