webroot for macports

Rainer Müller raimue at macports.org
Mon Apr 26 16:33:17 PDT 2010


On 2010-04-27 01:02 , Ryan Schmidt wrote:
> On Apr 26, 2010, at 16:34, Rainer Müller wrote:
>> I would prefer ${prefix}/var/www.
> 
> According to "man porthier" we already decided on ${prefix}/www but if you want it changed I don't care one way or the other.

Hm, I wasn't aware of that :-)

I just thought that ${prefix}/var/www seemed the logical location in the
hierarchy and is usually the default on other systems I know.

> The real question about a webroot is what the document root should
> be. The document root absolutely *cannot* be ${prefix}/www because
> ${prefix}/www will contain the directory cgi-bin and probably other
> directories that should not be served directly by the web server.
> Therefore, the document root should be ${prefix}/www/htdocs (Apache
> naming) or ${prefix}/www/public (ZendFramework naming) or something
> else that we can agree on.

How about ${prefix}/www/default so people can set up customized vhosts
like ${prefix}/www/foobar?

Rainer


More information about the macports-dev mailing list