aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/Caddyfile12
-rw-r--r--example/static/index.html11
2 files changed, 23 insertions, 0 deletions
diff --git a/example/Caddyfile b/example/Caddyfile
new file mode 100644
index 0000000..8f08483
--- /dev/null
+++ b/example/Caddyfile
@@ -0,0 +1,12 @@
+{
+ debug
+ admin off
+ log {
+ level debug
+ }
+}
+
+http://localhost:8000 {
+ root * ./examples/static
+ file_server
+}
diff --git a/example/static/index.html b/example/static/index.html
new file mode 100644
index 0000000..db924d5
--- /dev/null
+++ b/example/static/index.html
@@ -0,0 +1,11 @@
+<html>
+ <head>
+ <title>Root Index</title>
+ </head>
+ <body>
+ <h1>Root Index</h1>
+ <p>
+ This is the root page of the example site.
+ </p>
+ </body>
+</html>