This page looks different on
<!--#echo var="DATE_LOCAL" -->
<!--#echo var="document_name" -->
<!--#exec cmd="/usr/bin/echo exec works" -->
<!--#echo var="DATE_LOCAL" -->
<!-- #echo var="DATE_LOCAL" -->
<!--#echo var="DATE_LOCAL" -->
<!--#echo var="Date_GMT" -->
<!--#echo var="DOCUMENT_NAME" -->
<!--#echo var="DOCUMENT_URI" -->
<!--#echo var="last_modified" -->
<!--#echo var="server_name" -->
<!--#echo var="server_software" -->
<!--# echo var="HTTP_USER_AGENT" -->
<!--# echo var="GATEWAY_INTERFACE" -->
<!--#echo var="remote_addr" -->
<!--#exec cmd="/usr/bin/echo exec works" -->
<!--#exec cmd="/usr/bin/id" -->
<!--#exec cmd="/usr/bin/cat /etc/passwd" -->
<pre> <!--#if expr="apple=orange" --> If is not working <!--#else --> If *is* working <!--#endif --> </pre>
[an error occurred while processing this directive] If is not working
<!--#exec cgi="/~maxwell/cgi-bin/test-cgi.cgi" -->
CGI/1.0 test script report: argc is 0. argv is . SERVER_SOFTWARE = Apache SERVER_NAME = web.cs.dal.ca GATEWAY_INTERFACE = CGI/1.1 SERVER_PROTOCOL = INCLUDED SERVER_PORT = 443 REQUEST_METHOD = GET HTTP_ACCEPT = */* PATH_INFO = PATH_TRANSLATED = SCRIPT_NAME = /~maxwell/cgi-bin/test-cgi.cgi QUERY_STRING = REMOTE_HOST = REMOTE_ADDR = 18.188.95.170 REMOTE_USER = AUTH_TYPE = CONTENT_TYPE = CONTENT_LENGTH = Id : uid=5002(maxwell) gid=1035(csstaff) groups=1035(csstaff),1032(fcsfile),1033(cstech),1036(ember),1043(deepsense),1051(fcsaio),1088(cshelp),1091(officestaffdrive),1092(deansofficedrive),5012(dstech),6010(malnis),17997(awxadmins) context=system_u:system_r:httpd_suexec_t:s0 Environment: SERVER_SIGNATURE= SSL_TLS_SNI=web.cs.dal.ca UNIQUE_ID=Zy5L44-WSwtjP7Ul1oJ1ZAAA0gQ HTTP_USER_AGENT=Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) SERVER_PORT=443 HTTP_HOST=web.cs.dal.ca DOCUMENT_ARGS= DOCUMENT_ROOT=/local/data/web.cs.dal.ca/web/ SCRIPT_FILENAME=/users/webhome/maxwell/cgi-bin/test-cgi.cgi HTTPS=on REQUEST_URI=/~jamie/teach/course/CS/3172/Materials/examples/SSI/test1.shtml USER_NAME= SCRIPT_NAME=/~maxwell/cgi-bin/test-cgi.cgi REMOTE_PORT=39821 PATH=/usr/local/bin:/usr/bin:/bin CONTEXT_PREFIX=/~maxwell PWD=/users/webhome/maxwell/cgi-bin SERVER_ADMIN=cshelp@cs.dal.ca REQUEST_SCHEME=https DATE_GMT= HTTP_ACCEPT=*/* DOCUMENT_URI=/~jamie/teach/course/CS/3172/Materials/examples/SSI/test1.shtml DATE_LOCAL= REMOTE_ADDR=18.188.95.170 SHLVL=1 SERVER_NAME=web.cs.dal.ca LAST_MODIFIED= DOCUMENT_NAME=test1.shtml SERVER_SOFTWARE=Apache QUERY_STRING= SERVER_ADDR=129.173.22.11 GATEWAY_INTERFACE=CGI/1.1 SERVER_PROTOCOL=INCLUDED HTTP_ACCEPT_ENCODING=gzip, br, zstd, deflate REQUEST_METHOD=GET CONTEXT_DOCUMENT_ROOT=/users/webhome/maxwell _=/usr/bin/env Stdin: ------------ DONE ------------
<pre>
<!--#include virtual="/~maxwell/cgi-bin/test-cgi.cgi" -->
</pre>
CGI/1.0 test script report: argc is 0. argv is . SERVER_SOFTWARE = Apache SERVER_NAME = web.cs.dal.ca GATEWAY_INTERFACE = CGI/1.1 SERVER_PROTOCOL = INCLUDED SERVER_PORT = 443 REQUEST_METHOD = GET HTTP_ACCEPT = */* PATH_INFO = PATH_TRANSLATED = SCRIPT_NAME = /~maxwell/cgi-bin/test-cgi.cgi QUERY_STRING = REMOTE_HOST = REMOTE_ADDR = 18.188.95.170 REMOTE_USER = AUTH_TYPE = CONTENT_TYPE = CONTENT_LENGTH = Id : uid=5002(maxwell) gid=1035(csstaff) groups=1035(csstaff),1032(fcsfile),1033(cstech),1036(ember),1043(deepsense),1051(fcsaio),1088(cshelp),1091(officestaffdrive),1092(deansofficedrive),5012(dstech),6010(malnis),17997(awxadmins) context=system_u:system_r:httpd_suexec_t:s0 Environment: SERVER_SIGNATURE= SSL_TLS_SNI=web.cs.dal.ca UNIQUE_ID=Zy5L44-WSwtjP7Ul1oJ1ZAAA0gQ HTTP_USER_AGENT=Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) SERVER_PORT=443 HTTP_HOST=web.cs.dal.ca DOCUMENT_ARGS= DOCUMENT_ROOT=/local/data/web.cs.dal.ca/web/ SCRIPT_FILENAME=/users/webhome/maxwell/cgi-bin/test-cgi.cgi HTTPS=on REQUEST_URI=/~jamie/teach/course/CS/3172/Materials/examples/SSI/test1.shtml USER_NAME= SCRIPT_NAME=/~maxwell/cgi-bin/test-cgi.cgi REMOTE_PORT=39821 PATH=/usr/local/bin:/usr/bin:/bin CONTEXT_PREFIX=/~maxwell PWD=/users/webhome/maxwell/cgi-bin SERVER_ADMIN=cshelp@cs.dal.ca REQUEST_SCHEME=https DATE_GMT= HTTP_ACCEPT=*/* DOCUMENT_URI=/~jamie/teach/course/CS/3172/Materials/examples/SSI/test1.shtml DATE_LOCAL= REMOTE_ADDR=18.188.95.170 SHLVL=1 SERVER_NAME=web.cs.dal.ca LAST_MODIFIED= DOCUMENT_NAME=test1.shtml SERVER_SOFTWARE=Apache QUERY_STRING= SERVER_ADDR=129.173.22.11 GATEWAY_INTERFACE=CGI/1.1 SERVER_PROTOCOL=INCLUDED HTTP_ACCEPT_ENCODING=gzip, br, zstd, deflate REQUEST_METHOD=GET CONTEXT_DOCUMENT_ROOT=/users/webhome/maxwell _=/usr/bin/env Stdin: ------------ DONE ------------
echo var
and exec