|
Revision 5876, 0.7 KB
(checked in by jow, 3 years ago)
|
|
uhttpd: add init script and uci configuration
|
| Line | |
|---|
| 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 | |
|---|