|
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:
CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
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:
Saturday, 26-Jul-2008 14:47:10 GMT
DATE_LOCAL:
Saturday, 26-Jul-2008 10:47:10 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:
(none)
HTTPS:
(none)
HTTPS_CIPHER:
(none)
HTTPS_KEYSIZE:
(none)
HTTPS_SECRETKEYSIZE:
(none)
HTTP_ACCEPT:
Accept: application/xhtml+xml,text/html;q=0.9,text/plain;
HTTP_ACCEPT_CHARSET:
ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING:
gzip
HTTP_ACCEPT_LANGUAGE:
en-us,en;q=0.5
HTTP_CONNECTION:
close
HTTP_HOST:
web.mit.edu
HTTP_PRAGMA:
no-cache
HTTP_USER_AGENT:
CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
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:
38.103.63.16
REMOTE_PORT:
51153
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
|