Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Sep 2007 15:18:46 +0800
From:      Rong-En Fan <rafan@freebsd.org>
To:        Eric <eric@mikestammer.com>
Cc:        Robert Huff <roberthuff@rcn.com>, questions@freebsd.org
Subject:   Re: apache22 web root directive
Message-ID:  <20070910071846.GC81691@svm.csie.ntu.edu.tw>
In-Reply-To: <46E4A0E0.1010709@mikestammer.com>
References:  <46E482D7.8000305@mikestammer.com> <18148.38048.334086.419648@jerusalem.litteratus.org> <46E4A0E0.1010709@mikestammer.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 09, 2007 at 08:41:52PM -0500, Eric wrote:
> Robert Huff wrote:
>> Eric writes:
>>>  Is there a directive to add to make.conf or anywhere else to tell
>>>  ports what directory my webroot is? when i was running apache20,
>>>  things like mailgraph installed files in the proper
>>>  location. Recently I just updated to apache22 and now mailmail
>>>  still insists on creating directories under the old directory
>>>  layout. is this a mailgraph port problem or do I have a missing
>>>  directive somewhere telling ports where my document root is?
>> 	Let me see if I understand:
>> 	You're running apache22, with DocumentRoot and/or ServerRoot in
>> a non-standard location.  Because of this, a third-party application
>> is malfunctioning.
>> 	You are looking for a single way for that and other
>> applications to tell at run-time where the new location is.
>> 	No such critter, as far as I know.  For those applications that
>> accept environment variables of command-lind switches, it should be
>> trivial to write a wrapper script to parse httpd,conf and provide
>> the correct information.
>> 	For a compile-time switch, portupgrade users can use
>> pkgtools.cfg; others will have to look elsewhere.
> 
> 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?
> 
> I included the maintainer to see if this is the case and perhaps the 
> Makefile should be changed and or post install instructions can be updated

The reason I choose the current approach is to reduce 
user interaction after installation. Could you try this
patch that allows you customize DocumentRoot when installing
mailgraph?

http://people.freebsd.org/~rafan/mailgraph.diff

Regards,
Rong-En Fan

> 
> Eric



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070910071846.GC81691>