diff options
author | Menno E. Duursma <druiloor@zonnet.nl> | 2010-05-11 22:54:54 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 22:54:54 +0200 |
commit | ea78ddeb3707c2cf2e12687ca2b9b527fc654367 (patch) | |
tree | a03acbc30f4219778fc39dda766ec5d4f1b4217c /network/mod_chroot/README | |
parent | ee86ce5db70c1c34463d5d057afe546995e88f4a (diff) | |
download | slackbuilds-ea78ddeb3707c2cf2e12687ca2b9b527fc654367.tar.gz |
network/mod_chroot: Added to 12.1 repository
Diffstat (limited to 'network/mod_chroot/README')
-rw-r--r-- | network/mod_chroot/README | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/network/mod_chroot/README b/network/mod_chroot/README new file mode 100644 index 0000000000..391c8e0805 --- /dev/null +++ b/network/mod_chroot/README @@ -0,0 +1,21 @@ +mod_chroot allows you to run Apache in a chroot jail with no additional files. +This makes running Apache in a chroot environment easy. + +The chroot() system call is performed at the end of startup procedure - when +all libraries are loaded and log files open. No need for a special directory +hierarchy (containing /dev, /lib, /etc...), unless an external handler, such +as suEXEC or suPHP, is being used, or system()-like functions are in use. + +This package pre-creates /var/chroot/httpd with just enough subdirs to enable +the stock Slackware config to run. Provided /etc/httpd/httpd.conf contains: + +ChrootDir /var/chroot/httpd +LoadModule chroot_module lib/httpd/modules/mod_chroot.so + +And the following (or similar) commands where run: + +mount -o nosuid,nodev --bind /var/run/httpd /var/chroot/httpd/var/run/httpd +mount -o nosuid,nodev --bind /srv /var/chroot/httpd/srv +mount --bind /var/www /var/chroot/httpd/var/www + +Above commands maybe added to rc.local. |