uhttpd: complete init script and sample configuration
[project/luci.git] / contrib / package / uhttpd / files / uhttpd.config
1 config uhttpd main
2         # Server document root
3         option home             /www
4
5         # Certificate and private key for HTTPS.
6         # If no listen_https addresses are given,
7         # the key options are ignored.
8         option cert             /etc/nixio/cert_main.der
9         option key              /etc/nixio/rsa_main.der
10
11         # CGI url prefix, will be searched in docroot.
12         # Default is /cgi-bin
13         option cgi_prefix       /cgi-bin
14
15         # Lua url prefix and handler script.
16         # Lua support is disabled if no prefix given.
17 #       option lua_prefix       /lua
18 #       option lua_handler      /www/lua/handler.lua
19
20         # HTTP listen addresses, multiple allowed
21         list listen_http        0.0.0.0:80
22 #       list listen_http        [::]:80
23
24         # HTTPS listen addresses, multiple allowed
25         list listen_https       0.0.0.0:443
26 #       list listen_https       [::]:443
27
28         # Basic auth realm, defaults to local hostname
29 #       option realm    OpenWrt
30
31         # Configuration file in busybox httpd format
32 #       option config   /etc/httpd.conf