[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apache



On Mon, 1 Nov 2004 13:27:37 +0100, Rev3rse <igor.piazza@gmail.com> wrote:
> I have a question about Apache: why user www have a home directory in
> /var/www and not in /dev/null for example?

This is due to the chrooted Apache that is shipped with OpenBSD. It
chroots to /var/www to do all its work once started. See the FAQ [1]
for more info.


> Another thing I believe that is better if the owner of the directories
> are root:www, with a drwxr-x--- permission for example

Such would make it rather hard to serve public web pages. In other
words: it would defeat the primary purpose of a webserver.

That is, unless you disable the chroot() and serve pages from
somewhere else. Please read the docs and understand what happens
before attempting to do this.

Cheers,

Rogier

> Rev`


[1] OpenBSD FAQ - "Tell me about this chroot() Apache?"
http://www.openbsd.org/faq/faq10.html#httpdchroot

-- 
If you don't know where you're going, any road will get you there.