[NANOWEB DOCUMENTATION]

NANOWEB, the aEGiS PHP web server

Environment Variables

Following variables will be exported to environment for every cgi executed, additonally these variables can be used internally in nanoweb (for example in the RewriteRules of mod_rewrite as %{VARNAME}):

SERVER_NAME
www.example.com

SERVER_SOFTWARE
SERVER_API
SERVER_ADMIN
SERVER_PROTOCOL
SERVER_ADDR
SERVER_PORT
are describing the server

REMOTE_ADDR
REMOTE_PORT
informations about the client

DOCUMENT_ROOT
where most pages come from

PATH_TRANSLATED
SCRIPT_FILENAME
contain the real path of the script

REQUEST_URI
contains the real request uri

SCRIPT_NAME
the uri fully rewritten according to rewriterules / multiviews

PATH_INFO
any additonal path that was supplied to the CGI

REQUEST_METHOD
may be GET or POST

QUERY_STRING
the cgi paramters sent via GET

CONTENT_LENGTH
the length of data on STDIN submitted in a POST request

Anything you add with the AddServerVar will most always appear in the CGI environment, too.



NANOWEB, the aEGiS PHP web server

Index