Download USER'S GUIDE - QNX Software Systems

Transcript
Running Slinger
 2005, QNX Software Systems
Use these environment variables to configure Slinger:
HTTPD ROOT DIR
The name of the directory where Slinger looks for data files.
The default is /usr/local/httpd.
HTTP ROOT DOC
The name of the root document. When a web client requests the
root document, HTTPD ROOT DOC is appended to
HTTPD ROOT DIR to build the full pathname of the root
document. The default is index.html.
For example, if HTTPD ROOT DOC is defined as index.html,
and HTTPD ROOT DIR is defined as /usr/www, Slinger appends
index.html to /usr/www to build /usr/www/index.html.
Once you’ve decided on a directory structure, you need to export
these environment variables before starting Slinger:
export HTTPD ROOT DIR=/usr/local/httpd
export HTTPD ROOT DOC=index.html
For information on setting environment variables when you login to
your machine, see Configuring Your Environment.
Running Slinger
To run Slinger, simply type:
slinger &
370
Chapter 16 ¯ Setting Up an Embedded Web Server
October 6, 2005