ssi_test.shtml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>The HTML5 Herald</title>
  6. <meta name="author" content="CivetWeb developers">
  7. <meta name="description" content="CivetWeb Server Side Include (SSI) Test Page">
  8. </head>
  9. <body>
  10. <h1>CivetWeb Server Side Include (SSI) Test Page</h1>
  11. <p>Note: Some of the tests below will only work on Windows, others only on Linux, and some probably not on all Linux distributions and all Windows versions.</p>
  12. <h2>Execute: "cd"</h2>
  13. <!--#exec "cd" -->
  14. <h2>Execute: "pwd"</h2>
  15. <!--#exec "pwd" -->
  16. <h2>File relative to current document: "hello.txt"</h2>
  17. <!--#include file="hello.txt" -->
  18. <h2>Short form: "hello.txt"</h2>
  19. <!--#include "hello.txt" -->
  20. <h2>File relative to document root: "hello.txt"</h2>
  21. <!--#include virtual="hello.txt" -->
  22. <h2>File with absolute path: "C:\Windows\system.ini"</h2>
  23. <!--#include abspath="C:\Windows\system.ini" -->
  24. <h2>File with absolute path: "/etc/issue"</h2>
  25. <!--#include abspath="/etc/issue" -->
  26. <h2>Nested file relative to current documentt: "hello.shtml"</h2>
  27. <!--#include file="./hello.shtml" -->
  28. </body>
  29. </html>