SSI Echo Environment Variables
A number of environment variables can be used in #if and #echo statements, such as
<!--#echo var="HTTP_USER_AGENT" -->
which yields the browser you are using: SiteSucker/2.2.2
These variables can be used in if/elif/else/endif statements, which allow you to construct conditional displays of information. The basic test is the comparison of two strings or a string and a unix egrep regular expression, the tests can be combined using the usual logical operations. See http://www.apache.org/docs/mod/mod_include.html#flowctrl for details.
Environment Variables displayed through echo:
DATE_GMT: Wednesday, 06-May-2009 14:52:34 GMT
DATE_LOCAL: Wednesday, 06-May-2009 10:52:34 EDT
DOCUMENT_NAME: ssi-echo.shtml
DOCUMENT_URI: /ist/web/reference/web-resources/ssi-echo.shtml
LAST_MODIFIED: Wednesday, 26-Sep-2007 17:38:22 EDT
DOCUMENT_ROOT: /afs/net.mit.edu/admin/www/root
DOCUMENT_PATH_INFO: (none)
DOCUMENT_URI: /ist/web/reference/web-resources/ssi-echo.shtml
GATEWAY_INTERFACE: CGI/1.1
HTTP_REFERER: /web/reference/web-resources/ssi.shtml
HTTPS: (none)
HTTPS_CIPHER: (none)
HTTPS_KEYSIZE: (none)
HTTPS_SECRETKEYSIZE: (none)
HTTP_ACCEPT: */*
HTTP_ACCEPT_CHARSET: (none)
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_CONNECTION: keep-alive
HTTP_HOST: web.mit.edu
HTTP_PRAGMA: (none)
HTTP_USER_AGENT: SiteSucker/2.2.2
PATH: /etc/athena:/bin/athena:/usr/athena/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
QUERY_STRING:
QUERY_STRING_UNESCAPED: (none)
REMOTE_ADDR: 75.69.141.20
REMOTE_PORT: 42184
REQUEST_METHOD: GET
REQUEST_URI: /ist/web/reference/web-resources/ssi-echo.shtml
SCRIPT_FILENAME: /afs/net.mit.edu/admin/www/root/afs/athena.mit.edu/org/i/ist/web/reference/web-resources/ssi-echo.shtml
SCRIPT_NAME: /ist/web/reference/web-resources/ssi-echo.shtml
SERVER_ADMIN: network@mit.edu
SERVER_NAME: web.mit.edu
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.1
SERVER_SOFTWARE: MIT Web Server Apache/1.3.26 Mark/1.5 (Unix) mod_ssl/2.8.9 OpenSSL/0.9.7c
SERVER_SIGNATURE: <ADDRESS>MIT Web Server Apache/1.3.26 Mark/1.5 Server at web.mit.edu Port 80</ADDRESS>
SSL_CIPHER: (none)
SSL_CLIENT_C: (none)
SSL_CLIENT_CN: (none)
SSL_CLIENT_DN: (none)
SSL_CLIENT_EMAIL: (none)
SSL_CLIENT_I_C: (none)
SSL_CLIENT_I_DN: (none)
SSL_CLIENT_I_O: (none)
SSL_CLIENT_I_OU: (none)
SSL_CLIENT_I_ST: (none)
SSL_CLIENT_O: (none)
SSL_CLIENT_OU: (none)
SSL_CLIENT_ST: (none)
SSL_PROTOCOL_VERSION: (none)
SSL_SERVER_C: (none)
SSL_SERVER_CN: (none)
SSL_SERVER_DN: (none)
SSL_SERVER_I_C: (none)
SSL_SERVER_I_CN: (none)
SSL_SERVER_I_DN: (none)
SSL_SERVER_I_O: (none)
SSL_SERVER_I_OU: (none)
SSL_SERVER_I_ST: (none)
SSL_SERVER_O: (none)
SSL_SERVER_OU: (none)
SSL_SERVER_ST: (none)
SSL_SSLEAY_VERSION: (none)
USER_NAME: user#22673
For more information, see http://www.apache.org/docs/mod/mod_include.html