From owner-freebsd-questions@FreeBSD.ORG Mon Sep 10 12:43:03 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6201C16A41B for ; Mon, 10 Sep 2007 12:43:03 +0000 (UTC) (envelope-from eric@mikestammer.com) Received: from smtp118.sbc.mail.re3.yahoo.com (smtp118.sbc.mail.re3.yahoo.com [66.196.96.91]) by mx1.freebsd.org (Postfix) with SMTP id 0155713C4A6 for ; Mon, 10 Sep 2007 12:43:02 +0000 (UTC) (envelope-from eric@mikestammer.com) Received: (qmail 46992 invoked from network); 10 Sep 2007 12:16:22 -0000 Received: from unknown (HELO mail.mikestammer.com) (mikestammer@sbcglobal.net@70.131.96.103 with login) by smtp118.sbc.mail.re3.yahoo.com with SMTP; 10 Sep 2007 12:16:22 -0000 X-YMail-OSG: uD12T_MVM1ljoCm7Bdyi338ocE0xULqNU8VCfcJibW6jQVOtGLJH_Q_aog7RZCFRYJYTJ032ZnM12dyhHLLNTw0w.lkLBLZaF0BGMm7ge50U_VNT8mQWfAuaboToRoxyEPzJcbZyWE4sypbgquGXpNxLPg-- Received: from localhost (localhost [127.0.0.1]) by mail.mikestammer.com (Postfix) with ESMTP id 033BDB916; Mon, 10 Sep 2007 07:16:32 -0500 (CDT) X-Virus-Scanned: amavisd-new at mikestammer.com Received: from mail.mikestammer.com ([127.0.0.1]) by localhost (gondolin.middleearth.mikestammer.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9R+YZoGa+-wM; Mon, 10 Sep 2007 07:16:29 -0500 (CDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: eric) by mail.mikestammer.com (Postfix) with ESMTPSA id 51DC8B90E; Mon, 10 Sep 2007 07:16:27 -0500 (CDT) Message-ID: <46E5358F.1010104@mikestammer.com> Date: Mon, 10 Sep 2007 07:16:15 -0500 From: Eric User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Matthew Seaman References: <46E482D7.8000305@mikestammer.com> <18148.38048.334086.419648@jerusalem.litteratus.org> <46E4A0E0.1010709@mikestammer.com> <46E4E0F9.5020207@infracaninophile.co.uk> In-Reply-To: <46E4E0F9.5020207@infracaninophile.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Robert Huff , questions@freebsd.org, rafan@freebsd.org Subject: Re: apache22 web root directive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Sep 2007 12:43:03 -0000 Matthew Seaman wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Eric wrote: > > >> close, but I am not running in a non standard DocumentRoot as far as I >> know. its set to apache22's /usr/local/www/apache22/data, which is the >> default, but if you look at the mailgraph Makefile, it uses >> /usr/local/www/data for the install. >> >> the more i look at it, the more it seems like its a mailgraph issue. >> >> i guess I am curious of the apache20 default of /usr/local/www/data was >> around so long its just what everyone assumes, but from what I can tell, >> thats not the recommended practice. isnt it better to install to >> /usr/local/www/mailgraph and then alias things? >> > > Web-based applications will generally install into a subdirectory of > /usr/local/www independent of what web server you use. There are > some exceptions -- eg. cacti installs into /usr/local/share/cacti > > This means that you will have to make provision in your httpd.conf > (or whatever the equivalent is for the webserver you're using) so > that the filesystem space the application lives in is mapped into > the URL-space provided by your webserver. In apache, that typically > means setting up an alias and then applying appropriate access > controls in a or block. > > Formerly many web applications installed into the apache specific > directory /usr/local/www/data but this behaviour is now discouraged. > It's not, AFAIK, absolutely forbidden, but you'ld have a hard time > getting a new port through committal if it behaved like that. I > don't think there has been a concerted effort to find all of the > older ports that install under /usr/local/www/data and modify them; > rather individual maintainers are expected to modify their ports as > the occasion arises. > > Cheers, > > Matthew > > - -- > yes, and this is how i would prefer to see mailgraph operate as well. I was just pointing out the fact that mailgraph didnt work this way. Just to be clear, I am not doing anything out of the ordinary or using a non-recommended DocumentRoot. The patch at http://people.freebsd.org/~rafan/mailgraph.diff appears to work properly, but shouldnt mailgraph be installed to /usr/local/www/mailgraph as per the recommendations and an alias added to apache for access to mailgraph? Eric