Complete SSI Directive Test

This page contains every known SSI directive in real syntax. The server will try to execute all of them. Unsupported directives will show [an error occurred] ? that is normal. View the source code to learn all directives. Refresh to test again.


1. Configuration (#config)

1.1 timefmt

DATE_LOCAL: Saturday, May 30, 2026 at 13:03:33

DATE_GMT (alt format): 2026-05-30 13:03:33

1.2 sizefmt

[an error occurred while processing the directive]

Size of this file (bytes): [an error occurred while processing the directive]

[an error occurred while processing the directive]

Size of this file (abbrev): [an error occurred while processing the directive]

1.3 errmsg

The following invalid directive <!--#invalid --> will trigger the custom error message:

[Custom error: directive not supported or bad params]

2. Variable Output (#echo)

2.1 Document info

DOCUMENT_NAME: (none)

DOCUMENT_URI: /ssi.htm

LAST_MODIFIED: (none)

2.2 Client info

REMOTE_ADDR: 216.73.217.54

REMOTE_HOST: (none)

HTTP_USER_AGENT: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

HTTP_REFERER: (none)

2.3 Server and request info

SERVER_NAME: ~^(?<sub>.+)\.w10\.site$

SERVER_PORT: 80

SERVER_PROTOCOL: HTTP/1.1

REQUEST_METHOD: GET

REQUEST_URI: /ssi.htm

QUERY_STRING: (none)

2.4 Encoding output

URL encoded QUERY_STRING: (none)

HTML entity encoded HTTP_USER_AGENT: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)


3. File Inclusion (#include)

3.1 Using file parameter

Include quote.txt if it exists:

text1 text2 text3

3.2 Using virtual parameter

Include /index.html (itself, may cause recursion warning):

~ Retro Terminal Home ~

Welcome to my digital attic


~ Navigation ~


About

This is a personal homepage hosted on w10.host ? a static web host with a retro twist. Everything you see is pure HTML 1.0 + basic SSI. It loads instantly on a 386 and looks fine on a smartphone.


Server info (SSI) - all times are UTC

Server time (UTC): 2026-05-30 13:03:33

Your IP: 216.73.217.54

User agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)


~ Links of interest ~


(c) 2026 - Built with original HTML 1.0 and nostalgia. Refresh to update SSI data.

Back to top


4. File Information (#flastmod and #fsize)

4.1 flastmod (file)

Last modified of index.html (file): [Custom error: directive not supported or bad params]

4.2 flastmod (virtual)

Last modified of /index.html (virtual): [Custom error: directive not supported or bad params]

4.3 fsize (file)

Size of index.html (file): [Custom error: directive not supported or bad params] bytes

4.4 fsize (virtual)

Size of /index.html (virtual): [Custom error: directive not supported or bad params] bytes


5. Variable Setting (#set)

my_test_var value: This variable was created via #set


6. Conditional Directives (#if / #elif / #else / #endif)

Condition 1: REMOTE_ADDR is not empty -> this line should appear.

Condition 2: else case -> this line should appear.


7. Blocks (#block / #endblock / #include block)

Reusing the block via <!--#include block="demo_block" -->:

[Custom error: directive not supported or bad params]

8. Exec (#exec - high risk, usually disabled)

8.1 Exec system command (cmd)

#exec cmd="date": [Custom error: directive not supported or bad params]

#exec cmd="echo Hello": [Custom error: directive not supported or bad params]

8.2 Exec CGI (cgi)

#exec cgi="/cgi-bin/printenv": [Custom error: directive not supported or bad params]


9. Print All Variables (#printenv)

[Custom error: directive not supported or bad params]

10. Miscellaneous and Rare Directives

10.1 Reset errmsg to default

10.2 Non-existent variable (triggers error message?)

Non-existent variable: (none)

10.3 Empty include (syntax error example)

~ Retro Terminal Home ~

Welcome to my digital attic


~ Navigation ~


About

This is a personal homepage hosted on w10.host ? a static web host with a retro twist. Everything you see is pure HTML 1.0 + basic SSI. It loads instantly on a 386 and looks fine on a smartphone.


Server info (SSI) - all times are UTC

Server time (UTC): 2026-05-30 13:03:33

Your IP: 216.73.217.54

User agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)


~ Links of interest ~


(c) 2026 - Built with original HTML 1.0 and nostalgia. Refresh to update SSI data.

Back to top


Links


This page uses HTML 2.0 and us-ascii encoding. All SSI directives are written in real syntax, regardless of server support. Use the source code as a reference manual. Refresh to re-run all tests.