User manual
22: Configuring HTTP server
_______________________________________________________________________________________________________
root@VA_router:~# uci show uhttpd.main
uhttpd.main=uhttpd
uhttpd.main.listen_http=0.0.0.0:80
uhttpd.main.listen_https=0.0.0.0:443
uhttpd.main.home=/www
uhttpd.main.rfc1918_filter=1
uhttpd.main.cert=/etc/uhttpd.crt
uhttpd.main.key=/etc/uhttpd.key
uhttpd.main.cgi_prefix=/cgi-bin
uhttpd.main.script_timeout=60
uhttpd.main.network_timeout=30
config 'uhttpd' 'main'
list 'listen_http' '0.0.0.0:80'
list 'listen_https' '0.0.0.0:443'
option 'home' '/www'
option 'rfc1918_filter' '1'
option 'cert' '/etc/uhttpd.crt'
option 'key' '/etc/uhttpd.key'
option 'cgi_prefix' '/cgi-bin'
option 'script_timeout' '60'
option 'network_timeout' '30'
22.2 HTTPS certificate settings and creation
If listen_https is defined in the server configuration and the certificate and
private key is missing, the web server init script will generate the appropriate
certificate and key files when the server is started for the first time, either by
reboot or by manual restart.
The uhttpd configuration contains a section detailing the certificate and key files
creation parameters.
Name Type Required Default Description
days integer no 730
Validity time of the generated certificates
in days.
bits integer no 1024 Size of the generated RSA key in bits.
country
string
no
DE
ISO country code of the certificate issuer.
state
string
No
Berlin
State of the certificate issuer.
_______________________________________________________________________________________________________
© Virtual Access 2015
GW1000 Series User Manual
Issue: 2.4 Page 150 of 255