SSI - the #echo command
Not all variables are set in all servers. You'll note that some of these return (none) rather than useful information.
| AUTH_TYPE | Security authorization method if any |
<!--#echo var="AUTH_TYPE" -->Authorization type is (none) | |
| CONTENT_LENGTH | Size of input received from browser |
<!--#echo var="CONTENT_LENGTH" -->Content length is (none) | |
| CONTENT_TYPE | MIME type of document being returned |
<!--#echo var="CONTENT_TYPE" -->Mime type is (none) | |
| DATE_GMT | The current GMT (Greenwich Mean Time) |
<!--#echo var="DATE_GMT" -->It is now Saturday, 07-Nov-2009 18:42:34 GMT | |
| DATE_LOCAL | The current date and time (at the server) |
<!--#echo var="DATE_LOCAL" -->It is now Saturday, 07-Nov-2009 11:42:34 MST local time | |
| DOCUMENT_NAME | document name that was requested |
<!--#echo var="DOCUMENT_NAME" -->This page is SSI-echo.html | |
| DOCUMENT_URI | URL of this document |
<!--#echo var="DOCUMENT_URI" -->The URI for this page is /~elsi/SSI-echo.html | |
| HTTP_REFERER | URL of the document the browser came from |
<!--#echo var="HTTP_REFERER" -->(none) linked to this page | |
| HTTP_USER_AGENT | The browser that is being used |
<!--#echo var="HTTP_USER_AGENT" -->You are using CCBot/1.0 (+http://www.commoncrawl.org/bot.html) as your browser | |
| LAST_MODIFIED | Date that this document was last modified |
<!--#echo var="LAST_MODIFIED" -->This page was last updated Monday, 22-Jul-2002 18:22:14 MDT | |
| PAGE_COUNT | Number of times this document has been served |
<!--#echo var="PAGE_COUNT" -->This page has been viewed (none) times | |
| REMOTE_ADDR | Numeric IP address of the client/browser |
<!--#echo var="REMOTE_ADDR" -->Your browser is located at 38.107.191.84 | |
| REMOTE_HOST | Computer host name of the client/browser |
<!--#echo var="REMOTE_HOST" -->Your computer is named (none) | |
| REMOTE_IDENT | The user identification sent to the server as part of automatic authentication |
<!--#echo var="REMOTE_IDENT" -->You have been authenticated as (none) | |
| REMOTE_USER | ID of user at the browser as provided during authentication |
<!--#echo var="REMOTE_USER" -->You logged in as user (none) | |
| REQUEST_METHOD | HTTP method: GET OR POST |
<!--#echo var="REQUEST_METHOD" -->Your browser sent in a GET request | |
| SERVER_NAME | Server hostname |
<!--#echo var="SERVER_NAME" -->This server is freepages.computers.rootsweb.ancestry.com | |
| SERVER_PORT | The port used by the web server |
<!--#echo var="SERVER_PORT" -->This server is listening on port 80 | |
| SERVER_PROTOCOL | Which version of Httpd is the web server using |
<!--#echo var="SERVER_PROTOCOL" -->This server is running HTTP version HTTP/1.1 | |
| SERVER_SOFTWARE | The name of the web server software |
<!--#echo var="SERVER_SOFTWARE" -->This server is running Apache/2.2.3 (CentOS) | |
| TOTAL_HITS | Total number files served |
<!--#echo var="TOTAL_HITS" -->This server has delivered (none) pages and images | |