What CGI environment variables can I use with SSI?

 
SERVER_SOFTWARE=Stronghold/2.0


The name and version number of the server software

SERVER_NAME=host


The host being addressed in this request, which may be the main host or a virtual host, either as a fully-qualified domain name or an IP address

HTTP_HOST=host


The same as SERVER_NAME

HTTP_ACCEPT=MIME-type[, MIME-type, MIME-type . . .]


One or more MIME types that the client can accept

HTTP_USER_AGENT=name/version (platform)


The name, version number, and platform of the client software

REMOTE_HOST=host


The hostname or IP number of the client host or proxy server that originated the request

REMOTE_PORT=port


The client-side port number that originated the request

REMOTE_ADDR=IP


The IP number of the client host

REMOTE_USER=username


The remote username, if the script is subject to basic authentication

REMOTE_IDENT=ident


The remote username as supplied by identd, if available

SERVER_PROTOCOL=protocol/version


The protocol and version number used to send the request, which Stronghold also uses in its response in order to ensure compatibility with the client

REQUEST_METHOD=method


The method used in this request, such as GET or POST

AUTH_TYPE=method


The authentication method used in this request, if any

CONTENT_TYPE=MIME-type


The MIME type of any data attached to the request header

CONTENT_LENGTH=n


The size, in bytes, of any data attached to the request header

SCRIPT_NAME=path/to/script


The URL of the requested script

SCRIPT_FILENAME=absolute/path/to/script


The absolute path to the requested script

SCRIPT_URI=method://host/path/to/script


The URL of the requested script

SCRIPT_URL=path/to/script


The URL of the requested script

QUERY_STRING=string


The query-string for this transaction, embedded in the requested URL
  • 67 Users Found This Useful
Was this answer helpful?

Related Articles

Instructions using SSI

Server Side Includes - SSISSI works in conjunction with a web page usually with the .shtml...

What are Server-Side Includes?

Server-side includes (SSIs) are simple, HTML-embedded directives that instruct the web server to...

How do I use SSI?

First you must create a page with a .shtml extension! Then SSI is easily implemented into your...

What directives are available?

  The include directive inserts the text of another document, specified either as a file...

What extended SSI elements are available?

flow control elements much like the ones used inprogramming languages. With flow control, you can...