forked from grommunio/gromox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mod_cache.4gx
38 lines (38 loc) · 1.29 KB
/
mod_cache.4gx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.\" SPDX-License-Identifier: CC-BY-SA-4.0 or-later
.\" SPDX-FileCopyrightText: 2021 grommunio GmbH
.TH mod_cache 4gx "" "Gromox" "Gromox admin reference"
.SH Name
mod_cache \(em http(8gx) processing plugin for serving objects from a local
filesystem
.SH Description
mod_cache serves local files when certain URIs are requested. Note that
mod_fastcgi(4gx) has a table of its own and higher precedence.
.PP
mod_cache is built into http(8gx) and not a separate .so file.
.SH Configuration directives
This (built-in) plugin shares \fBhttp.cfg\fP. See http(8gx).
.SH URI map
The filemap that specifies which URIs to handle is \fBcache.txt\fP,
which is searched for in \fIconfig_file_path\fP. The usual location is
/etc/gromox/cache.txt.
.PP
Each line in this file consists of 3 columns separated by whitespace:
.IP \(bu 4
Domain or wildcard to match the HTTP Host: header with.
.IP \(bu 4
URI path (prefix) to match
.IP \(bu 4
Target directory within the filesystem
.PP
If the file has no lines, no documents will be served this way.
If the file is absent however, a set of default entries will be used.
.SS Default entries
.nf
* /web /usr/share/grommunio-web
.fi
.SH Files
.IP \(bu 4
\fIconfig_file_path\fP/cache.txt: URI map specifying which paths this plugin
shall handle.
.SH See also
\fBgromox\fP(7), \fBhttp\fP(8gx)