6: Accessing the router 
_______________________________________________________________________________________________________ 
_____________________________________________________________________________________________________ 
© Virtual Access 2017 
GW1000 Series User Manual 
Issue: 1.9    Page 38 of 350 
Web: CGI profile 
UCI: uhttpd.main.cgi_prefix 
Opt: cgi_prefix 
 
Defines the prefix for CGI scripts, relative to the document root. 
CGI support is disabled if this option is missing. 
Web: N/A 
UCI: uhttpd.main.lua_prefix 
Opt: lua_prefix 
 
Defines the prefix for dispatching requests to the embedded lua 
interpreter, relative to the document root. Lua support is 
disabled if this option is missing. 
Web: N/A 
UCI: uhttpd.main.lua_handler 
Opt: lua_handler 
 
Specifies the lua handler script used to initialise the lua runtime 
on server start. 
/usr/lib/lua/luci/sgi/uhttpd.lua 
Web: Script timeout 
UCI: uhttpd.main.script_timeout 
Opt: script_timeout 
 
Sets the maximum wait time for CGI or lua requests in seconds. 
Requested executables are terminated if no output was 
generated. 
Web: Network timeout 
UCI: uhttpd.main.network_timeout 
Opt: network_timeout 
Maximum wait time for network activity. Requested executables 
are terminated and connection is shut down if no network activity 
occured for the specified number of seconds. 
Web: N/A 
UCI: uhttpd.main.realm 
Opt: realm 
 
Defines basic authentication realm when prompting the client for 
credentials (HTTP 400). 
Web: N/A 
UCI: uhttpd.main.config 
Opt: config 
 
Config file in Busybox httpd format for additional settings. 
Currently only used to specify basic auth areas. 
Web: N/A 
UCI: uhttpd.main.index_page 
Opt: index_page 
 
Index file to use for directories, for example, add index.php when 
using php. 
Web: N/A 
UCI: httpd.main.error_page 
Opt: error_page 
 
Virtual URL of file of CGI script to handle 404 requests. Must 
begin with ‘/’ (forward slash). 
Web: N/A 
UCI: uhttpd.main.no_symlinks 
Opt: no_symlinks 
 
Does not follow symbolic links if enabled. 
Web: N/A 
UCI: uhttpd.main.no_dirlists 
Opt: no_symlinks 
Does not generate directory listings if enabled.