diff options
author | Christopher Brannon <chris@the-brannons.com> | 2021-03-31 08:13:58 -0700 |
---|---|---|
committer | Christopher Brannon <chris@the-brannons.com> | 2021-03-31 08:13:58 -0700 |
commit | 8ad1f6375d060f7a3de0990ebf1f9b0cd4d15751 (patch) | |
tree | 220b0c561686fbf455fac583a1317fbd2dd84f4c | |
parent | a6449e5c651e5fc9fa929eefab62ab8e5b6e4397 (diff) | |
download | nawp-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.md | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -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 |