summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-11-01 10:30:35 -0500
committerDrew DeVault <sir@cmpwn.com>2020-11-01 10:32:44 -0500
commit16e55c62623ef33db5e143126582d93c44ea950e (patch)
tree9642b16d19dcae22a9b00e7179016fcd92972457 /doc
parent36e53f1f7f4681edd15fd4925357d6676db6aa8e (diff)
downloadgmnisrv-16e55c62623ef33db5e143126582d93c44ea950e.tar.gz
gmnisrv-16e55c62623ef33db5e143126582d93c44ea950e.tar.xz
gmnisrv-16e55c62623ef33db5e143126582d93c44ea950e.zip
Change meaning of root (backwards incompatible!)
This takes the nginx approach to the "root" directive, which is simpler to implement and more consistent with more complex routing behaviors like regexp. The path component of the URL is now simply appended to the root to form the path to the file which should be served to the client.
Diffstat (limited to 'doc')
-rw-r--r--doc/gmnisrvini.scd9
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/gmnisrvini.scd b/doc/gmnisrvini.scd
index 554458a..00fbce3 100644
--- a/doc/gmnisrvini.scd
+++ b/doc/gmnisrvini.scd
@@ -84,9 +84,12 @@ Within each routing section, the following keys are used to configure how
*root*
Configures the path on disk from which files shall be served for this
- host. If using path prefix matching, the prefix is trimmed, so if
- example.org/foo/bar.txt is requested and matches *[example.org:/foo]*,
- "bar.txt" will be appended to the root to form the file path.
+ host. The path component of the URL will be appended to this value to
+ form the path to files on disk to serve.
+
+ If example.org/foo/bar.txt is requested, and a route is configured for
+ *[example.org:/foo]* with the root set to /srv/gemini,
+ /srv/gemini/foo/bar.txt will be served.
*index*
Configures the name of the index file which shall be served in the event