openbsd-ports/www/fcgi-cgi/pkg/MESSAGE-static
sthen cf97d0ad2e Add a subpackage to make it easy to run fcgi-cgi in a chroot jail,
requested by Johan Huldtgren, thanks dhill for testing.
2012-04-10 19:34:52 +00:00

8 lines
315 B
Plaintext

To jail fcgi-cgi within /var/www, add an entry like this to rc.conf.local:
fcgi_cgi_flags="-a 127.0.0.1 -p 9001 -u www -U www \
-c /var/www -- ${TRUEPREFIX}/bin/fcgi-cgi"
Obviously you will need to ensure that everything necessary for your CGI
application is installed within the chroot jail.