aboutsummaryrefslogtreecommitdiffstats
path: root/package/uhttpd/files/uhttpd.config
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-03-27 00:00:33 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-03-27 00:00:33 +0000
commit99e8e7cf2f2c856ac67b2b0455a8b10b659a1ab5 (patch)
treeefa53486b6d67774f4641dea35ec97e78744b298 /package/uhttpd/files/uhttpd.config
parent78c616da82979a2bbf96a8792680278cf641a23a (diff)
downloadupstream-99e8e7cf2f2c856ac67b2b0455a8b10b659a1ab5.tar.gz
upstream-99e8e7cf2f2c856ac67b2b0455a8b10b659a1ab5.tar.bz2
upstream-99e8e7cf2f2c856ac67b2b0455a8b10b659a1ab5.zip
[package] uhttpd:
- make script timeout configurable - catch SIGCHLD to properly interrupt select() - flag listen and client sockets as close-on-exec git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20500 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/uhttpd/files/uhttpd.config')
-rw-r--r--package/uhttpd/files/uhttpd.config20
1 files changed, 13 insertions, 7 deletions
diff --git a/package/uhttpd/files/uhttpd.config b/package/uhttpd/files/uhttpd.config
index 0bca4f516b..79b018cf80 100644
--- a/package/uhttpd/files/uhttpd.config
+++ b/package/uhttpd/files/uhttpd.config
@@ -1,6 +1,14 @@
# Server configuration
config uhttpd main
+ # HTTP listen addresses, multiple allowed
+ list listen_http 0.0.0.0:80
+# list listen_http [::]:80
+
+ # HTTPS listen addresses, multiple allowed
+ list listen_https 0.0.0.0:443
+# list listen_https [::]:443
+
# Server document root
option home /www
@@ -19,13 +27,11 @@ config uhttpd main
# option lua_prefix /luci
# option lua_handler /usr/lib/lua/luci/sgi/uhttpd.lua
- # HTTP listen addresses, multiple allowed
- list listen_http 0.0.0.0:80
-# list listen_http [::]:80
-
- # HTTPS listen addresses, multiple allowed
- list listen_https 0.0.0.0:443
-# list listen_https [::]:443
+ # CGI/Lua timeout, if the called script does not
+ # write data within the given amount of seconds,
+ # the server will temrinate the request with
+ # 504 Gateway Timeout response.
+ option script_timeout 60
# Basic auth realm, defaults to local hostname
# option realm OpenWrt