Current ebuilds for bind have a very convenient config script to configure bind to run in a chroot. This bug requests this functionality in apache ebuilds. The beginning of a ebuild config script can be found here: http://www.genco.gen.tc/gentoo_chroot_apache2.html However, it's quite outdated and there are a few bugs in this script which could be corrected.
www-apache/mod_chroot Latest version available: 0.5 Latest version installed: [ Not Installed ] Size of downloaded files: 44 kB Homepage: http://core.segfault.pl/~hobbit/mod_chroot/ Description: mod_chroot allows you to run Apache in a chroot jail with no additional files License: GPL-2