summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-04-21 23:48:42 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-04-21 23:48:42 (EDT)
commit2ec3191492887dd090d89a1185e519d083ac2f0d (patch)
tree2f4606a722405f5786e24aec4751238f59488f68
parent9cf9428ad12c2956fd3e0b5e22ca74c5a79fa31b (diff)
Add some files to test the Web server.
-rw-r--r--src/var/www/cgi-bin/uptime.cgi18
-rw-r--r--src/var/www/index.html13
2 files changed, 31 insertions, 0 deletions
diff --git a/src/var/www/cgi-bin/uptime.cgi b/src/var/www/cgi-bin/uptime.cgi
new file mode 100644
index 0000000..f1badae
--- /dev/null
+++ b/src/var/www/cgi-bin/uptime.cgi
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+cat <<EOF
+Content-Type: text/html; charset=utf-8
+
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Operating System Uptime</title>
+ </head>
+ <body>
+ <h1>Operating System Uptime</h1>
+ <pre>$(uptime)</pre>
+ </body>
+</html>
+EOF
diff --git a/src/var/www/index.html b/src/var/www/index.html
new file mode 100644
index 0000000..e166dba
--- /dev/null
+++ b/src/var/www/index.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Embedded Operating System Distribution</title>
+ </head>
+ <body>
+ <h1>It works!</h1>
+ <p>This is the default Web page for this server.</p>
+ <p>The HTTP daemon of the embedded operating system distribution is running.</p>
+ </body>
+</html>