[NANOWEB DOCUMENTATION]

NANOWEB, the aEGiS PHP web server

Environment/Nanoweb Variables

Following variables will be exported to environment for every cgi executed, and they are also available as %VARNAME in many directives (those who allow to specify response messages as LoadLimitErrorMessage, or in the RewriteRule directive for example):
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
REDIRECT_URL
is required for compatibility with the Apache-CGI-SAPI PHP interpreter
PATH_INFO
any additonal path that was supplied to the CGI
REQUEST_METHOD
may be GET or POST
QUERY_STRING
the cgi parameters sent via GET
CONTENT_LENGTH
the length of data on STDIN submitted in a POST request
HTTP_*
most other headers of the http request are made available as environment variables with a name of the form like HTTP_WHATEVER, common are HTTP_ACCEPT_LANGUAGE, HTTP_ACCEPT, HTTP_X_FORWARDED_FOR, HTTP_USER_AGENT

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



NANOWEB, the aEGiS PHP web server