Support - Server Side Includes
To activate SSI on any Adhost unix server, simply change the suffix on your .html file to .shtml, or use chmod u+x myfile.html.
Command
Result
(Include 'filename' in your HTML page)
< br /> (Include a file in your HTML page that is not in the same or lower directory)< br />
(Change filesize format)
7k
Saturday, 13-Dec-2003 22:39:57 PST
Change date/time format
Flow Control (if, elif, else, endif, etc.)
www.adhost.com
Apache/1.3.29 (Unix) PHP/4.3.4
HTTP/1.1
80
(none)
206.124.144.166
ssi.shtml
Saturday, 13-Dec-2003 22:39:57 PST
Saturday, 21-Aug-2004 15:17:03 PDT
Saturday, 21-Aug-2004 22:17:03 GMT
/support/siteconfig/ssi.shtml
(none)
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.2.30703)
(amiga, macintosh, or windows)
(none)
(none)
(none)
(animated gif)
(none)
(none)
(none)
(none)
(none)
Here is an example of what you may see
DOCUMENT_ROOT=/home/web/sites/adhost
downgrade-1.0=1
force-response-1.0=1
HTTP_ACCEPT=*/*
HTTP_ACCEPT_ENCODING=gzip, deflate
HTTP_ACCEPT_LANGUAGE=en-us
HTTP_CONNECTION=Keep-Alive
HTTP_HOST=adhost.com
HTTP_USER_AGENT=Mozilla/4.0
(compatible; MSIE 5.01; Windows NT 5.0)
nokeepalive=1
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
REMOTE_ADDR=209.20.160.235
REMOTE_PORT=1276
SCRIPT_FILENAME=/home/web/sites/
adhost/support/siteconfig/ssi.shtml
SERVER_ADDR=209.20.160.123
SERVER_ADMIN=webmaster@adhost.com
SERVER_NAME=www.adhost.com
SERVER_PORT=80
SERVER_SIGNATURE=Apache/1.3.19 Server
at www.adhost.com Port 80
SERVER_SOFTWARE=Apache/1.3.19
(Unix) GATEWAY_INTERFACE=CGI/1.1
SERVER_PROTOCOL=HTTP/1.1
REQUEST_METHOD=GET
QUERY_STRING=
REQUEST_URI=/support/siteconfig/ssi.shtml
SCRIPT_NAME=/support/siteconfig/ssi.shtml
DATE_LOCAL=Tuesday, 04-Sep-2001 10:57:01 PDT
DATE_GMT=Tuesday, 04-Sep-2001 17:57:01 GMT
LAST_MODIFIED=Tuesday, 04-Sep-2001 10:56:59 PDT
DOCUMENT_URI=/support/siteconfig/ssi.shtml
DOCUMENT_PATH_INFO=
USER_NAME=
DOCUMENT_NAME=ssi.shtml










