diff options
author | Martin Miller | 2020-12-10 18:17:07 -0600 |
---|---|---|
committer | Martin Miller | 2020-12-10 18:17:07 -0600 |
commit | 015b9cb1b2f808624ae693327090aa8514438226 (patch) | |
tree | 7a4ab4557fb2e196c2b6b19743dae526d4f9d3bd /docker/tbp/etc/lighttpd/mod_cgi.conf | |
download | tbp-015b9cb1b2f808624ae693327090aa8514438226.zip tbp-015b9cb1b2f808624ae693327090aa8514438226.tar.gz |
Diffstat (limited to 'docker/tbp/etc/lighttpd/mod_cgi.conf')
-rw-r--r-- | docker/tbp/etc/lighttpd/mod_cgi.conf | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/docker/tbp/etc/lighttpd/mod_cgi.conf b/docker/tbp/etc/lighttpd/mod_cgi.conf new file mode 100644 index 0000000..f56415f --- /dev/null +++ b/docker/tbp/etc/lighttpd/mod_cgi.conf @@ -0,0 +1,32 @@ +############################################################################### +# mod_cgi.conf +# include'd by lighttpd.conf. +# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/conf/mod_cgi.conf,v 1.1 2005/08/27 12:36:13 ka0ttic Exp $ +############################################################################### + +# +# see cgi.txt for more information on using mod_cgi +# + +server.modules += ("mod_cgi") + +# NOTE: this requires mod_alias +alias.url = ( + "/cgi-bin/" => var.basedir + "/cgi-bin/" +) + +# +# Note that you'll also want to enable the +# cgi-bin alias via mod_alias (above). +# + +$HTTP["url"] =~ "^/cgi-bin/" { + # disable directory listings + dir-listing.activate = "disable" + # only allow cgi's in this directory + cgi.assign = ( + ".cgi" => "/bin/bash" + ) +} + +# vim: set ft=conf foldmethod=marker et : |