User manual

22: Configuring HTTP server
_______________________________________________________________________________________________________
Location string no Berlin Location/city of the certificate issuer.
commonname string no (none)
Common name covered by the certificate.
For the purposes of secure Activation this
MUST be set to the serial number (eth0
mac address) of the device.
A standard uhttp certificate section is shown below.
root@VA_router:~# uci show uhttpd.px5g
uhttpd.px5g=cert
uhttpd.px5g.days=3650
uhttpd.px5g.bits=1024
uhttpd.px5g.country=IE
uhttpd.px5g.state=Dublin
uhttpd.px5g.location=Dublin
uhttpd.px5g.commonname=00E0C8000000
config 'cert' 'px5g'
option 'days' '3650'
option 'bits' '1024'
option 'country' 'IE'
option 'state' 'Dublin'
option 'location' 'Dublin'
option 'commonname' '00E0C8000000'
22.3 Basic authentication (httpd.conf)
For backward compatibility reasons, uhttpd uses the file /etc/httpd.conf to define
authentication areas and the associated usernames and passwords. This
configuration file is not in UCI format.
Authentication realms are defined in the format prefix:username:password with
one entry and a line break.
Prefix is the URL part covered by the realm, for example, cgi-bin to request basic
auth for any CGI program.
Username specifies the username a client has to login with.
Password defines the secret password required to authenticate.
The password can be either in plain text format, MD5 encoded or in the form
$p$user where the user refers to an account in /etc/shadow or /etc/passwd.
_______________________________________________________________________________________________________
© Virtual Access 2015
GW1000 Series User Manual
Issue: 2.4 Page 151 of 255