aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Brannon <chris@the-brannons.com>2021-03-31 08:13:58 -0700
committerChristopher Brannon <chris@the-brannons.com>2021-03-31 08:13:58 -0700
commit8ad1f6375d060f7a3de0990ebf1f9b0cd4d15751 (patch)
tree220b0c561686fbf455fac583a1317fbd2dd84f4c
parenta6449e5c651e5fc9fa929eefab62ab8e5b6e4397 (diff)
downloadnawp-8ad1f6375d060f7a3de0990ebf1f9b0cd4d15751.tar
nawp-8ad1f6375d060f7a3de0990ebf1f9b0cd4d15751.tar.gz
nawp-8ad1f6375d060f7a3de0990ebf1f9b0cd4d15751.tar.bz2
nawp-8ad1f6375d060f7a3de0990ebf1f9b0cd4d15751.tar.lz
nawp-8ad1f6375d060f7a3de0990ebf1f9b0cd4d15751.tar.xz
nawp-8ad1f6375d060f7a3de0990ebf1f9b0cd4d15751.tar.zst
nawp-8ad1f6375d060f7a3de0990ebf1f9b0cd4d15751.zip
Update README.
-rw-r--r--README.md20
1 files changed, 19 insertions, 1 deletions
diff --git a/README.md b/README.md
index de78892..a2e6974 100644
--- a/README.md
+++ b/README.md
@@ -41,7 +41,25 @@ For instance, to add a user named `chris`:
You'll be prompted for the password. Unfortunately it'll echo to stdout
for now. Fixing that is going to require a little yak-shaving.
-Finally, you'll want to do some web server configuration. TODO.
+Finally, you'll want to do some web server configuration.
+Here's a sample configuration snippet for lighttpd:
+
+ server.modules += ("mod_cgi", "mod_redirect", "mod_rewrite")
+
+ # Redirect ^/blog$ to /blog/, so that relative links resolve properly:
+ url.redirect = ("^/blog$" => "/blog/")
+
+ url.rewrite-once = (
+ "^/blog/$" => "/cgi-bin/blog",
+ "^/blog/(.+)$" => "/cgi-bin/blog/$1"
+ )
+
+ # Assuming you want the old-school Apache-style /cgi-bin directory like I do:
+ $HTTP["url"] =~ "^/cgi-bin" {
+ cgi.assign = ( "" => "" )
+ }
+
+To make a post, visit https://yourdomain/blog/post-form and fill in the fields.
## Contributing