Server Side Includes


This is a test document for the .SHTML extension files. This documents URL is /wasd_root/exercise/SHTML.SHTML (actual file: WASD_ROOT:[exercise]SHTML.SHTML), last modified 04-Nov-2021 09:41:22.

This is the 835,467th time since Mon Dec 11 10:55:16 1995 that this document has been accessed (yes that's correct ... the document is used when batch testing the server!)

It is possible to include another SSI file. The following blue section has been <!--#include virtual="shtml_include1.shtml">ed ...

Current date/time:

The local time is: Thu Nov 21 08:23:44 2024
(or more VMSish: 21-Nov-2024 08:23:44)

GMT time is: Thu Nov 21 12:23:44 2024 GMT

"#echos":

"*/*" browser accepted content types
"uprrp2.uprrp.edu" request host and port destination
"[VARIABLE-DOES-NOT-EXIST!]" referring document
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" browser identification string
"/wasd_root/exercise/SHTML.SHTML" request path
"WASD_ROOT:[exercise]SHTML.SHTML" current document VMS file name
"" request query string
"3.129.63.252" browser host address
"3.129.63.252" browser host name
"" authenticated user
"uprrp2.uprrp.edu" server host name
"443" server host port
"HTTP/1.1" Request HTTP protocol version
"HTTP/1.1" Server HTTP protocol version
"HTTPd-WASD/12.0.0 OpenVMS/IA64 SSL" server identification string

This request has been made via the HTTP/1.n protocol

<!--#if var={request_protocol} eqs="HTTP/2" -->
<u>HTTP/2</u>
<!--#else-->
<u>HTTP/1.<i>n</i></u>
<!--#endif-->

Let's include a file using:

<!--#include file="wasd_root:[exercise]shtml_include1.html" -->
The included text is italicised for clarity.

I have begun a new paragraph.

That same file between <LISTING></LISTING> tags:

The included text is italicised for clarity.

I have begun a new paragraph.

The same file, this time using a VIRTUAL specification:

<!--#include virtual="../exercise/shtml_include1.html" -->
The included text is italicised for clarity.

I have begun a new paragraph.

Size of the file:

<!--#fsize file="wasd_root:[exercise]shtml_include1.html" -->
We can determined the size of the file ... 88 bytes

Creation date:

<!--#fcreated file="wasd_root:[exercise]shtml_include1.html" -->
We can determined the creation date/time of the file ... 18-Sep-2013 02:22:31

Last modification date:

<!--#flastmod file="wasd_root:[exercise]shtml_include1.html" -->
We can determined the last modification date/time of the file ... 04-Nov-2021 09:41:22

``Index of'' this directory:

(The blue background is just to delineate the extent of the listing)

<!--#dir virtual="*.*" -->

Documents and files to exercise and test the HTTPd server.
Also performance testing procedures and raw results.
See WASD_TEST_AND_EXERCISE.TXT ⤤ for additional information.

NameRevisedSizeDescription

[TXT]0K.TXT 4-Nov-2021 09:410plain text
[TXT]16K.TXT 4-Nov-2021 09:4116,000plain text
[TXT]32K.TXT 4-Nov-2021 09:4132,000plain text
[TXT]48K.TXT 4-Nov-2021 09:4148,000plain text
[TXT]64K.TXT 4-Nov-2021 09:4164,000plain text
[TXT]CORS.COM 4-Nov-2021 09:414,238DCL procedure
[HTM]CORS.HTML 4-Nov-2021 09:413,884"WASD CORS Test JavaScript"
[HTM]DOTTY.HTML 4-Nov-2021 09:414,004"Let's concurrently load some dots!"
[BIN]DOTTY.JS 4-Nov-2021 09:41144JavaScript source
[IMG]DOTTY.PNG 4-Nov-2021 09:41347Portable Network Graphic
[BIN]DOTTY2.JS 4-Nov-2021 09:41136JavaScript source
[HTM]ESCHERKNOT.HTML 4-Nov-2021 09:4125HyperText Markup Language
[IMG]ESCHERKNOT.XBM 4-Nov-2021 09:4134,261X-bitmap
[TXT]FACE2FACE.COM 4-Nov-2021 09:41381DCL procedure
[TXT]FACE2FACE.PHP 4-Nov-2021 09:4131PHP source
[TXT]FACE2FACE.PL 4-Nov-2021 09:4158Perl source
[TXT]H2LOAD_FILES.TXT 4-Nov-2021 09:414,852plain text
[TXT]H2LOAD_MIXED.TXT 4-Nov-2021 09:411,088plain text
[TXT]INDEX.PHP 4-Nov-2021 09:41490PHP source
[IMG]OPENVMS.GIF 4-Nov-2021 09:411,536GIF image
[HTM]OPENVMS.HTML 4-Nov-2021 09:4140HyperText Markup Language
[HTM]README.HTML 4-Nov-2021 09:41258HyperText Markup Language
[htm]SHTML.SHTML 4-Nov-2021 09:416,148HyperText Markup Language (pre-processed)
[???]SHTML.SHTML$ 4-Nov-2021 09:414
[HTM]SHTML_INCLUDE1.HTML 4-Nov-2021 09:4188HyperText Markup Language
[htm]SHTML_INCLUDE1.SHTML 4-Nov-2021 09:41236HyperText Markup Language (pre-processed)
[TXT]SINGLEBYTEOUTPUT.COM 4-Nov-2021 09:412,310DCL procedure
[TXT]THIS$20IS$20A$20PATHWORKS$20FILE-NAME.TXT 4-Nov-2021 09:41278plain text
[TXT]THIS$7AIS$7AAN$7A$SRI$7A$FILE-NAME.TXT 4-Nov-2021 09:41268plain text
[TXT]THIS_IS_$2BALSO$2B$2EPATHWORKS.TXT 4-Nov-2021 09:41256plain text
[???]THIS_IS_$5KALSO$5K.$SRI$5N$TXT 4-Nov-2021 09:41244
[TXT]WASD_TEST_AND_EXERCISE.TXT 4-Nov-2021 09:415,986plain text

More controlled ``Index of'' HTML files in this directory:

<!--#dir virtual="*.html" par="layout=UL_S:b&delimit=none&nops=yes&readme=no" -->

NameSize

CORS.HTML3,884
DOTTY.HTML4,004
ESCHERKNOT.HTML25
OPENVMS.HTML40
README.HTML258
SHTML_INCLUDE1.HTML88

Now some allowed DCL commands:

<!--#dcl say="f$time()" -->
21-NOV-2024 08:23:44.05
<!--#dcl say="4+5" -->
9
<!--#dcl say="\"<I>hello</I>\"" -->
hello
<!--#dcl dir="wasd_root:[exercise]" -->
Directory WASD_ROOT:[EXERCISE] .AAAA_TEST;1 0K.TXT;2 16K.TXT;2 32K.TXT;2 48K.TXT;2 64K.TXT;2 CORS.COM;2 CORS.HTML;2 DOTTY.HTML;1 DOTTY.JS;1 DOTTY.PNG;1 DOTTY2.JS;1 ESCHERKNOT.HTML;2 ESCHERKNOT.XBM;2 FACE2FACE.COM;2 FACE2FACE.PHP;2 FACE2FACE.PL;2 H2LOAD_FILES.TXT;1 H2LOAD_MIXED.TXT;1 INDEX.PHP;2 OPENVMS.GIF;2 OPENVMS.HTML;2 README.HTML;2 SHTML.SHTML;2 SHTML.SHTML$;2 SHTML_INCLUDE1.HTML;2 SHTML_INCLUDE1.SHTML;2 SINGLEBYTEOUTPUT.COM;2 THIS$20IS$20A$20PATHWORKS$20FILE-NAME.TXT;2 THIS$7AIS$7AAN$7A$SRI$7A$FILE-NAME.TXT;2 THIS_IS_$2BALSO$2B$2EPATHWORKS.TXT;2 THIS_IS_$5KALSO$5K.$SRI$5N$TXT;2 WASD_TEST_AND_EXERCISE.TXT;1 Total of 33 files.
<!--#dcl show="process" -->
21-NOV-2024 08:23:44.10 User: HTTP$NOBODY Process ID: 0006D412 Node: UPRRP2 Process name: "WASD2:443$D412" Terminal: MBA57100: User Identifier: [HTTP$NOBODY] Base priority: 4 Default file spec: CGI-BIN:[000000] Number of Kthreads: 1 (System-wide limit: 16)
<!--#dcl show="users/node" -->
OpenVMS User Processes at 21-NOV-2024 08:23:44.12 Total number of users = 30, number of processes = 37 Username Interactive Subprocess Batch A_LUYANDA 1 A_NIEVES 1 A_VARGAS 1 C_ESQUILIN 1 C_POL 1 E_LINERA 1 E_SALGADO 1 FR_RIVERA 2 F_BEZARES 1 G_HOUSER 1 H_VILLAFANE 2 I_FEBRES 1 I_MIRANDA 1 JO_RAMOS 1 J_SAEZ 1 K_MEDINA 1 LY_RIVERA 1 L_MARTINEZ 1 MARVIN_PEREZ 1 MATRICULA 6 M_MARQUEZ 1 M_MUNIZ 1 R_CRUZ 1 R_GARCIA 1 S_DIAZ 1 S_ECHEVARRIA 1 S_RODRIGUEZ 1 V_RUIZ 1 W_ROSARIO 1 Z_HIDALGO 1

Now some privileged DCL commands:

<!--#dcl exec="show sym www_*" -->
WWW_AUTH_TYPE == "" WWW_CONTENT_LENGTH == "0" WWW_CONTENT_TYPE == "text/x-shtml" WWW_DOCUMENT_ROOT == "" WWW_GATEWAY_INTERFACE == "CGI/1.1" WWW_GATEWAY_MRS == "4492" WWW_HTTP_ACCEPT == "*/*" WWW_HTTP_ACCEPT_ENCODING == "gzip, br, zstd, deflate" WWW_HTTP_HOST == "uprrp2.uprrp.edu" WWW_HTTP_USER_AGENT == "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" WWW_KEY_COUNT == "0" WWW_PATH_INFO == "/wasd_root/exercise/SHTML.SHTML" WWW_PATH_ODS == "5" WWW_PATH_TRANSLATED == "WASD_ROOT:[exercise]SHTML.SHTML" WWW_QUERY_STRING == "" WWW_REMOTE_ADDR == "3.129.63.252" WWW_REMOTE_HOST == "3.129.63.252" WWW_REMOTE_PORT == "44527" WWW_REMOTE_USER == "" WWW_REQUEST_METHOD == "GET" WWW_REQUEST_PROTOCOL == "HTTP/1.1" WWW_REQUEST_SCHEME == "https:" WWW_REQUEST_TIME_GMT == "Thu, 21 Nov 2024 12:23:43 GMT" WWW_REQUEST_TIME_LOCAL == "Thu, 21 Nov 2024 08:23:43" WWW_REQUEST_URI == "/wasd_root/exercise/SHTML.SHTML" WWW_SCRIPT_NAME == "" WWW_SERVER_ADDR == "136.145.180.92" WWW_SERVER_CHARSET == "ISO-8859-1" WWW_SERVER_GMT == "-04:00" WWW_SERVER_NAME == "uprrp2.uprrp.edu" WWW_SERVER_PORT == "443" WWW_SERVER_PROTOCOL == "HTTP/1.1" WWW_SERVER_SIGNATURE == "<address>WASD/12.0.0 Server at uprrp2.uprrp.edu Port 443</address>" WWW_SERVER_SOFTWARE == "HTTPd-WASD/12.0.0 OpenVMS/IA64 SSL" WWW_UNIQUE_ID == "667baf8e4e4cd08b68a"
<!--#exec cmd="show sym *" -->
$FACILITY == "%X00000000" $IDENT == "%X00000000" $RESTART == "FALSE" $SEVERITY == "1" $STATUS == "%X10000001" WWW_AUTH_TYPE == "" WWW_CONTENT_LENGTH == "0" WWW_CONTENT_TYPE == "text/x-shtml" WWW_DOCUMENT_ROOT == "" WWW_GATEWAY_INTERFACE == "CGI/1.1" WWW_GATEWAY_MRS == "4492" WWW_HTTP_ACCEPT == "*/*" WWW_HTTP_ACCEPT_ENCODING == "gzip, br, zstd, deflate" WWW_HTTP_HOST == "uprrp2.uprrp.edu" WWW_HTTP_USER_AGENT == "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" WWW_KEY_COUNT == "0" WWW_PATH_INFO == "/wasd_root/exercise/SHTML.SHTML" WWW_PATH_ODS == "5" WWW_PATH_TRANSLATED == "WASD_ROOT:[exercise]SHTML.SHTML" WWW_QUERY_STRING == "" WWW_REMOTE_ADDR == "3.129.63.252" WWW_REMOTE_HOST == "3.129.63.252" WWW_REMOTE_PORT == "44527" WWW_REMOTE_USER == "" WWW_REQUEST_METHOD == "GET" WWW_REQUEST_PROTOCOL == "HTTP/1.1" WWW_REQUEST_SCHEME == "https:" WWW_REQUEST_TIME_GMT == "Thu, 21 Nov 2024 12:23:43 GMT" WWW_REQUEST_TIME_LOCAL == "Thu, 21 Nov 2024 08:23:43" WWW_REQUEST_URI == "/wasd_root/exercise/SHTML.SHTML" WWW_SCRIPT_NAME == "" WWW_SERVER_ADDR == "136.145.180.92" WWW_SERVER_CHARSET == "ISO-8859-1" WWW_SERVER_GMT == "-04:00" WWW_SERVER_NAME == "uprrp2.uprrp.edu" WWW_SERVER_PORT == "443" WWW_SERVER_PROTOCOL == "HTTP/1.1" WWW_SERVER_SIGNATURE == "<address>WASD/12.0.0 Server at uprrp2.uprrp.edu Port 443</address>" WWW_SERVER_SOFTWARE == "HTTPd-WASD/12.0.0 OpenVMS/IA64 SSL" WWW_UNIQUE_ID == "f2cd0e208f8c6dc164d"


Look at the source file:

<!--#include virtual="shtml.shtml" type="text/plain" --> the source of this document follows:

<!DOCTYPE html>
<!--##config trace=1 -->
<html>
<title>SSI / Pre-Processed HTML</title>
<h1>Server Side Includes<br></h1>
<p><hr size="3" width="100%" noshade>

<!--#config sizefmt="bytes" -->

<p> This is a test document for the <tt>.SHTML</tt> extension files.  This
documents URL is <tt><!--#echo PATH_INFO --></tt> (actual file:
<tt><!--#echo
file_name --></tt>), last modified <!--#echo LAST_MODIFIED -->.

<p>
<table bgcolor="ffff00" cellpadding="10" cellspacing="0" border="1">
<tr><td>
This is the
<!--#accesses ordinal since=" time since " timefmt="%c" -->
that this document has been accessed
(yes that's correct ... the document is used when batch testing the server!)
</td></tr>
</table>

<p> It is possible to include another SSI file. The following blue section has
been
<nobr><tt>&lt;!--#include virtual="shtml_include1.shtml"&gt;</tt>ed ...</nobr>

<p>
<table bgcolor="99ccff" cellpadding="10" cellspacing="0" border="1">
<tr><td>
<!--#include virtual="shtml_include1.shtml" -->
</td></tr>
</table>

<h2> &quot;#echos&quot;: </h2>

<table cellpadding="5" cellspacing="0" border="1">
<tr><td>&quot;<!--#echo http_accept -->&quot;</td>
<td>browser accepted content types</td></tr>
<tr><td>&quot;<!--#echo http_host -->&quot;</td>
<td>request host and port destination</td></tr>
<tr><td>&quot;<!--#echo http_referer -->&quot;</td>
<td>referring document</td></tr>
<tr><td>&quot;<!--#echo http_user_agent -->&quot;</td>
<td>browser identification string</td></tr>
<tr><td>&quot;<!--#echo path_info -->&quot;</td>
<td>request path</td></tr>
<tr><td>&quot;<!--#echo path_translated -->&quot;</td>
<td>current document VMS file name</td></tr>
<tr><td>&quot;<!--#echo query_string -->&quot;</td>
<td>request query string</td></tr>
<tr><td>&quot;<!--#echo remote_addr -->&quot;</td>
<td>browser host address</td></tr>
<tr><td>&quot;<!--#echo remote_host -->&quot;</td>
<td>browser host name</td></tr>
<tr><td>&quot;<!--#echo remote_user -->&quot;</td>
<td>authenticated user</td></tr>
<tr><td>&quot;<!--#echo server_name -->&quot;</td>
<td>server host name</td></tr>
<tr><td>&quot;<!--#echo server_port -->&quot;</td>
<td>server host port</td></tr>
<tr><td>&quot;<!--#echo request_protocol -->&quot;</td>
<td>Request HTTP protocol version</td></tr>
<tr><td>&quot;<!--#echo server_protocol -->&quot;</td>
<td>Server HTTP protocol version</td></tr>
<tr><td>&quot;<!--#echo server_software -->&quot;</td>
<td>server identification string</td></tr>
</table>

<h2> This request has been made via the 
<!--#if var={request_protocol} eqs="HTTP/2" -->
<u>HTTP/2</u>
<!--#else-->
<u>HTTP/1.<i>n</i></u>
<!--#endif-->
protocol</h2>

<pre>&lt;!--#if var={request_protocol} eqs="HTTP/2" --&gt;
&lt;u&gt;HTTP/2&lt;/u&gt;
&lt;!--#else--&gt;
&lt;u&gt;HTTP/1.&lt;i&gt;n&lt;/i&gt;&lt;/u&gt;
&lt;!--#endif--&gt;
</pre>

<h2> Let's include a file using: </h2>
<pre>&lt;!--#include file="wasd_root:[exercise]shtml_include1.html" --&gt;</pre>
<!--#include file="wasd_root:[exercise]shtml_include1.html" -->

<h2> That same file between &lt;LISTING&gt;&lt;/LISTING&gt;</tt> tags:
</h2>
<listing><!--#include virtual="shtml_include1.html" --></listing>

<h2> The same file, this time using a VIRTUAL specification:</h2>
<pre>&lt;!--#include virtual="../exercise/shtml_include1.html" --&gt;</pre>
<!--#include virtual="../exercise/shtml_include1.html" -->

<h2> Size of the file: </h2>
<pre>&lt;!--#fsize file="wasd_root:[exercise]shtml_include1.html" --&gt;</pre>
We can determined the size of the file ...
<!--#fsize file="wasd_root:[exercise]shtml_include1.html" -->

<h2> Creation date: </h2>
<pre>&lt;!--#fcreated file="wasd_root:[exercise]shtml_include1.html" --&gt;</pre>
We can determined the creation date/time of the file ...
<!--#fcreated file="wasd_root:[exercise]shtml_include1.html"
fmt="" 
-->

<h2> Last modification date: </h2>
<pre>&lt;!--#flastmod file="wasd_root:[exercise]shtml_include1.html" --&gt;</pre>
We can determined the last modification date/time of the file ...
<!--#flastmod
file="wasd_root:[exercise]shtml_include1.html"    
-->

<h2> ``Index of'' this directory:</h2>

<p> (The blue background is just to delineate the extent of the listing)

<pre>&lt;!--#dir virtual="*.*" --&gt;</pre>

<p>
<table bgcolor="99ccff" cellpadding="5" cellspacing="0" border="0">
<tr><td>

<!--#dir virtual="*.*" -->

</td></tr>
</table>

<h2> More controlled ``Index of'' HTML files in this directory:</h2>

<pre>&lt;!--#dir virtual="*.html" par="layout=UL_S:b&delimit=none&nops=yes&readme=no" --&gt;</pre>

<p>
<table bgcolor="99ccff" cellpadding="5" cellspacing="0" border="0">
<tr><td>

<!--#dir virtual="*.html" par="layout=UL_S:b&delimit=none&nops=yes&readme=no" -->

</td></tr>
</table>

<h2> Now some <b>allowed</b> DCL commands:</h2>

<pre>&lt;!--#dcl say="f$time()" --&gt;</pre>
<!--#dcl say="f$time()" -->

<pre>&lt;!--#dcl say="4+5" --&gt;</pre>
<!--#dcl say="4+5" -->

<pre>&lt;!--#dcl say="\"&lt;I&gt;hello&lt;/I&gt;\"" --&gt;</pre>
<!--#dcl say="\"<I>hello</I>\"" type="text/html" -->

<pre>&lt;!--#dcl dir="wasd_root:[exercise]" --&gt;</pre>
<listing><!--#dcl dir="wasd_root:[exercise]" --></listing>

<pre>&lt;!--#dcl show="process" --&gt;</pre>
<listing><!--#dcl show="process" --></listing>

<pre>&lt;!--#dcl show="users/node" --&gt;</pre>
<listing><!--#dcl show="users/node" --></listing>

<h2> Now some <b>privileged</b> DCL commands:</h2>

<pre>&lt;!--#dcl exec="show sym www_*" --&gt;</pre>
<listing><!--#dcl exec="show sym www_*" --></listing>

<pre>&lt;!--#exec cmd="show sym *" --&gt;</pre>
<listing><!--#exec cmd="show sym *" --></listing>

</ul>

<p><hr size="3" width="100%" noshade>

<h2> Look at the source file: </h2>
<listing>&lt;!--#include virtual="shtml.shtml" type="text/plain" --&gt;</listing>
the source of this document follows:

<p>
<table bgcolor="99ccff" cellpadding="5" cellspacing="0" border="0">
<tr><td>
<!--#include virtual="shtml.shtml" type="text/plain" -->
</td></tr>
</table>

<p><hr size="3" width="100%" noshade>

<h2>Finally a broken one: </h2>
<listing>&lt;!--#includ e virtual="shtml.shtml" type="text/plain" --&gt;</listing>

<!--#includ e virtual="shtml.shtml" type="text/plain" -->

</html>


Finally a broken one:

<!--#includ e virtual="shtml.shtml" type="text/plain" -->

SSI Error!

directive unknown (line 193)  ...  \#includ e virtual="shtml.shtml" type="text/plain"\