ucs:tab("server",translate("Full Web Server Settings"),translate("For settings primarily geared to serving more than the web UI"))
ucs:tab("advanced",translate("Advanced Settings"),translate("Settings which are either rarely needed or which affect serving the WebUI"))
lhttp=ucs:taboption("general",DynamicList,"listen_http",translate("HTTP listeners (address:port)"),translate("Bind to specific interface:port (by specifying interface address"))
lhttps=ucs:taboption("general",DynamicList,"listen_https",translate("HTTPS listener (address:port)"),translate("Bind to specific interface:port (by specifying interface address"))
o=ucs:taboption("general",Flag,"redirect_https",translate("Redirect all HTTP to HTTPS"))
o.default=o.enabled
o.rmempty=false
o=ucs:taboption("general",Flag,"rfc1918_filter",translate("Ignore private IPs on public interface"),translate("Prevent access from private (RFC1918) IPs on an interface if it has an public IP address"))
o=ucs:taboption("server",DynamicList,"index_page",translate("Index page(s)"),translate("E.g specify with index.html and index.php when using PHP"))
o.optional=true
o.placeholder="index.html"
o=ucs:taboption("server",DynamicList,"interpreter",translate("CGI filetype handler"),translate("Interpreter to associate with file endings ('suffix=handler', e.g. '.php=/usr/bin/php-cgi')"))
o.optional=true
o=ucs:taboption("server",Flag,"no_symlinks",translate("Do not follow symlinks outside document root"))
o.optional=true
o=ucs:taboption("server",Flag,"no_dirlists",translate("Do not generate directory listings."))
o.default=o.disabled
o=ucs:taboption("server",DynamicList,"alias",translate("Aliases"),translate("(/old/path=/new/path) or (just /old/path which becomes /cgi-prefix/old/path)"))
o.optional=true
o=ucs:taboption("server",Value,"realm",translate("Realm for Basic Auth"))
o.optional=true
o.placeholder=luci.sys.hostname()or"OpenWrt"
localhttpconfig=ucs:taboption("server",Value,"config",translate("Config file (e.g. for credentials for Basic Auth)"),translate("Will not use HTTP authentication if not present"))
httpconfig.optional=true
o=ucs:taboption("server",Value,"error_page",translate("404 Error"),translate("Virtual URL or CGI script to display on status '404 Not Found'. Must begin with '/'"))
translate("Base directory for files to be served"))
o.default="/www"
o.datatype="directory"
o=ucs:taboption("advanced",Value,"cgi_prefix",translate("Path prefix for CGI scripts"),translate("CGI is disabled if not present."))
o.optional=true
o=ucs:taboption("advanced",Value,"lua_prefix",translate("Virtual path prefix for Lua scripts"))
o.placeholder="/lua"
o.optional=true
o=ucs:taboption("advanced",Value,"lua_handler",translate("Full real path to handler for Lua scripts"),translate("Embedded Lua interpreter is disabled if not present."))
o.optional=true
o=ucs:taboption("advanced",Value,"ubus_prefix",translate("Virtual path prefix for ubus via JSON-RPC integration"),translate("ubus integration is disabled if not present"))
o.optional=true
o=ucs:taboption("advanced",Value,"ubus_socket",translate("Override path for ubus socket"))