summaryrefslogtreecommitdiff
path: root/network/mod_chroot/README
diff options
context:
space:
mode:
Diffstat (limited to 'network/mod_chroot/README')
-rw-r--r--network/mod_chroot/README18
1 files changed, 7 insertions, 11 deletions
diff --git a/network/mod_chroot/README b/network/mod_chroot/README
index 391c8e0805..5495f1ba29 100644
--- a/network/mod_chroot/README
+++ b/network/mod_chroot/README
@@ -7,15 +7,11 @@ 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:
+the stock Slackware config to run. You'll need to add the following line to
+your /etc/httpd/httpd.conf file:
+ Include /etc/httpd/mod_chroot.conf
-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.
+You'll also need to add the following lines to your /etc/fstab file:
+ /var/run/httpd /var/chroot/httpd/var/run/httpd none bind
+ /srv /var/chroot/httpd/srv none bind
+ /var/www /var/chroot/httpd/var/www none bind