Appendix (UPnP control point):
Set Up a Running CP - General Procedure (cont'd)
Once proof that lighttpd
is up and running, the entire interface main folder can be copy and paste at the same level of the index.lighttpd.html
file; for more information on the content of this directory, please refer to the user interface section. The remaining things to do are enable and configure correctly the common gateway interface (CGI) functionalities of the web server. The main configuration file for the web server is lighttpd.conf
, usually located at /etc/lighttpd
path. It has to be modified in the following sections:
at the opening lines,
mod_cgi
module has to be added along the server modules listserver.modules = (
[...]
"mod-cgi",
[...] )
at the next lines group, be sure that server document root path is set to value
/var/www
server.document-root = "/var/www"
at the end of file, in order to have a correct interpretation of the cgi script as URL, the following instruction has to be appended
$HTTP["url"] =~ "^/cgi-bin/" {
cgi.assign = ( "" => "" )
}
cgi.assign = ( ".cgi" => "")
When .cgi scripts are copied to the web server, they will be placed inside cgi-bin/
folder, with respect than the path of the server base directory.