summaryrefslogtreecommitdiff
path: root/www/ap2-chroot/MESSAGE
blob: e873d7c1cd23f108fc585caad2b877c2dcb6d3c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
===========================================================================
$NetBSD: MESSAGE,v 1.2 2004/12/04 14:12:19 ben Exp $

In order to enable mod_chroot in your Apache installation, you need to add
the following to your httpd.conf file:

	LoadModule chroot_module lib/httpd/mod_chroot.so

Please also refer to the documentation in:

	${PREFIX}/share/doc/mod_chroot/

It can be useful to null mount /var/run into CHROOTDIR/var/run, so that
apachectl and etc/rc.d/apache can still find the PID to stop apache.

For the UserDir feature, CHROOTDIR/etc/pwd.db and passwd need to exist.
Alternatively, instead of UserDir, one could null mount
/home/USER/public_html into DocumentRoot/~USER.

Take care configuring DocumentRoot, because apache will not start unless
the directory also exists before the chroot is performed.

===========================================================================