]> wpdd.info Git - www.git/commitdiff
Add instructions for testing out the site locally
authorJason Yundt <jason@jasonyundt.email>
Wed, 5 Oct 2022 21:30:38 +0000 (17:30 -0400)
committerJason Self <j@jxself.org>
Wed, 5 Oct 2022 23:29:55 +0000 (16:29 -0700)
README
test-lighttpd.conf [new file with mode: 0644]

diff --git a/README b/README
index e20a00faef8f5059c40f848f36240705b6536618..918f1ea30b42b7465924c061618eff88917f75dd 100644 (file)
--- a/README
+++ b/README
@@ -1,6 +1,14 @@
 This is the website for the Worldwide Public Domain Dedication (WPDD): 
 https://wpdd.info/
 
+Here's how you can test out the site locally:
+1. Make sure that you have lighttpd installed:
+   https://www.lighttpd.net/
+2. Change directory to the root of this repo.
+3. Run "lighttpd -D -f test-lighttpd.conf"
+4. Open a Web browser and go to:
+   http://localhost:49152/
+
 Aside from trademarks, this work, including this README, is licensed 
 under the Creative Commons Attribution-ShareAlike 4.0 International 
 License: http://creativecommons.org/licenses/by-sa/4.0/
diff --git a/test-lighttpd.conf b/test-lighttpd.conf
new file mode 100644 (file)
index 0000000..54b16ff
--- /dev/null
@@ -0,0 +1,15 @@
+# This file is dedicated to the public domain using the CC0 1.0
+# Universal Public Domain Dedication:
+# https://creativecommons.org/publicdomain/zero/1.0/
+
+server.document-root = var.CWD
+server.port = 49152
+index-file.names = ( "index.html" )
+
+mimetype.assign = (
+  ".html" => "text/html",
+  ".css" => "text/css"
+)
+
+server.modules = ("mod_ssi")
+ssi.extension = (".html")
\ No newline at end of file