From: Jason Yundt Date: Wed, 5 Oct 2022 21:30:38 +0000 (-0400) Subject: Add instructions for testing out the site locally X-Git-Url: https://wpdd.info/gitweb/?a=commitdiff_plain;h=de9d5a434da10b7481ed7a2beb1fa81e6650be5b;p=www.git Add instructions for testing out the site locally --- diff --git a/README b/README index e20a00f..918f1ea 100644 --- 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 index 0000000..54b16ff --- /dev/null +++ b/test-lighttpd.conf @@ -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