summaryrefslogtreecommitdiff
path: root/libexec/httpd/lua
diff options
context:
space:
mode:
authorshm <shm@NetBSD.org>2015-10-28 09:20:15 +0000
committershm <shm@NetBSD.org>2015-10-28 09:20:15 +0000
commit56a69ad5cb70c5597b194c1c331407dfdab19644 (patch)
treeebc7035bdb2306903345f1b3026e76c5b2c117f8 /libexec/httpd/lua
parentdb9d0c6c291e16dcf47577769569c34517053a75 (diff)
* add CGI support for ~user translation (-E switch)
* add redirects to ~user translation * fix bugs around ~user translation * add schema detection for absolute redirects * fixed few memory leaks * bunch of minor tweaks * removed -r support * smarter redirects OK mrg@
Diffstat (limited to 'libexec/httpd/lua')
-rwxr-xr-xlibexec/httpd/lua/bozo.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/libexec/httpd/lua/bozo.lua b/libexec/httpd/lua/bozo.lua
index 9a30c9f1fc6..567bbeb9147 100755
--- a/libexec/httpd/lua/bozo.lua
+++ b/libexec/httpd/lua/bozo.lua
@@ -35,6 +35,7 @@ dofile "optparse.lua"
opt = OptionParser{usage="%prog [options] root [vhost]", version="20091105"}
opt.add_option{"-C", "--cgimap", action="store", dest="cgimap", help="--cgimap 's t'"}
+opt.add_option{"-E", "--enable-user-cgibin", action="store_true", dest="enableusercgibin", help="--enable-user-cgibin"}
opt.add_option{"-H", "--hide-dots", action="store_true", dest="hidedots", help="--hide-dots"}
opt.add_option{"-I", "--portnum", action="store", dest="portnum", help="--portnum number"}
opt.add_option{"-M", "--dynamicmime", action="store", dest="dynmime", help="--dynamicmime 'suffix type a b'"}
@@ -50,7 +51,6 @@ opt.add_option{"-f", "--foreground", action="store_true", dest="foreground", hel
opt.add_option{"-i", "--bindaddr", action="store", dest="bindaddress", help="--bindaddr address"}
opt.add_option{"-n", "--numeric", action="store_true", dest="numeric", help="--numeric"}
opt.add_option{"-p", "--public-html", action="store", dest="public_html", help="--public-html dir"}
-opt.add_option{"-r", "--trusted-referal", action="store_true", dest="trustedref", help="trusted referal"}
opt.add_option{"-s", "--logtostderr", action="store_true", dest="logstderr", help="log to stderr"}
opt.add_option{"-t", "--chroot", action="store", dest="chroot", help="--chroot dir"}
opt.add_option{"-u", "--enable-users", action="store_true", dest="enableusers", help="--enable-users"}
@@ -141,6 +141,9 @@ end
if options.hidedots then
bozohttpd.set_pref(prefs, "hide dots", "true")
end
+if options.enableusercgibin then
+ bozohttpd.set_pref(prefs, "enable user cgibin", "true")
+end
if options.dirindex then
bozohttpd.set_pref(prefs, "directory indexing", "true")
end