[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Apache
- To: OpenBSD-misc list <misc@openbsd.org>
- Subject: Re: Apache
- From: Rogier Krieger <rkrieger@gmail.com>
- Date: Mon, 1 Nov 2004 15:59:04 +0100
- Cc: Rev3rse <igor.piazza@gmail.com>
- DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=Os5nQqWU98EOwmKDDMHgA7/HEbgprb2axTBwPL97AAqYaExsRuc/cAD/xNO8Om+hsUpLErrBoxUqjNh7V1XZj1HTgBYN5BNaLYY/Y/qkvTTE0Uru7PFb2YXTp7f5SjNrnyhyNw+QKH2U8knBwSXgd1lY7uLDVS5U9mgOnmn3nl0=
- References: <2a08481704110104275514bb9e@mail.gmail.com>
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.
- References:
- Apache
- From: Rev3rse <igor.piazza@gmail.com>