The following environment variables are set by the Texis Web Server
(vhttpd) when running CGI programs and Vortex scripts. These
can be added, deleted or modified with the config file settings
PATHSet to "/usr/local/bin:/usr/ucb:/bin:/usr/bin".
GATEWAY_INTERFACEThe CGI interface supported by the server, "CGI/1.1".
SERVER_SOFTWAREThe version/release of the server software.
SERVER_NAMEThe local hostname, or the value given by the
SERVER_PROTOCOLThe HTTP protocol used by the client to communicate with the server. Typically "HTTP/1.0".
SERVER_PORTThe TCP port the server is running on, given by the
Portconfig command or
-pcommand line option. Usually 80.
SERVER_ROOTThe root filesystem directory where the server is based from. Given by the
ServerRootconfig command or the
DOCUMENT_ROOTThe root filesystem directory where documents are served from. Given by the
DocumentRootconfig command or the
-doccommand line option.
REQUEST_METHODThe HTTP method of the client's request. Typically "GET" or "POST".
REQUEST_PATHThe URL-decoded value of the request URL, without the query string. This is a non-standard variable.
REQUEST_URIThe original (non-decoded) request URL path and query string. This is a non-standard variable. Added in version 3.01.963872250 20000717.
PATH_INFOThe URL-decoded value of the remainder of the request URL, if anything is left after any prefix was mapped to a CGI program or
VortexPath. Does not include the query string.
PATH_INFOcan vary from the actual URL if
VortexPathaliases to a specific script.
PATH_INFO, but translated to the filesystem, i.e. with
SCRIPT_NAMEThe decoded URL prefix path to the current CGI program or
QUERY_STRINGThe request URL, not decoded, after the first question-mark ("?").
REMOTE_ADDRThe dotted-decimal IP address of the client.
REMOTE_ADDR. (Client addresses are not currently reversed into hostnames to save load and network traffic.)
CONTENT_TYPEThe value of the Content-Type header, if any, given by the client.
CONTENT_LENGTHThe value of the Content-Length header, if any, given by the client.
In addition, any headers sent by the client are passed as an environment variable of the same name, in all upper case, with non-alphabetic characters mapped to underscore, and HTTP_ prefixed. Typical examples include:
HTTP_REFERERThe value of the Referer header, if any.
HTTP_USER_AGENTThe value of the User-Agent header, if any.
HTTP_HOSTThe value of the Host header, if any.
HTTP_ACCEPTThe value of the Accept header, if any.
HTTP_ACCEPT_ENCODINGThe value of the Accept-Encoding header, if any.
HTTP_COOKIEThe value of the Cookie header, if any.
HTTP_CONNECTIONThe value of the Connection header, if any.