mod_cache(4gx)

πŸ“¦
version 3.6 Β· 2 versions
, in alpine 3.24

πŸŽ€ Name πŸŽ€

Okay bestie, meet mod_cache β€” this is the mod_cache(4gx) page, and it’s literally the HTTP handler for serving objects from a local filesystem. That’s the whole main-character job. πŸ’…

πŸ¦‹ Description πŸ¦‹

mod_cache serves local files when certain URIs are requested. Simple as that, no cap. But lowkey important, fr fr: mod_fastcgi(4gx) has a table of its own and higher precedence β€” so it wins when it wants to, periodt. πŸ‘‘

🌸 Configuration directives 🌸

This component shares http.cfg. See http(8gx) for the config lore, iykyk. 🫢

✨ URI map ✨

The filemap that specifies which URIs to handle is cache.txt, and it gets searched for in config_file_path. The usual location is /etc/gromox/cache.txt. Slay. πŸ—ΊοΈ

Each line in this file consists of 3 columns separated by whitespace:

  • Domain or wildcard to match the HTTP Host: header with.
  • URI path (prefix) to match.
  • Target file/directory within the filesystem.

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. So like, empty file = silence, missing file = fallback magic. πŸͺ„

πŸ“ Default entries πŸ“

  • /web /usr/share/grommunio-web
  • /EWS/Messages.xsd /usr/share/gromox/Messages.xsd
  • /EWS/Services.wsdl /usr/share/gromox/Services.wsdl
  • /EWS/Types.xsd /usr/share/gromox/Types.xsd

πŸŽ€ Files πŸŽ€

  • config_file_path/cache.txt: URI map specifying which paths are served.

πŸ”₯ See also πŸ”₯

gromox(7), http(8gx) β€” go read those too, bestie. 🫢


okay bye bestie πŸ’– this iconic page is brought to you by source/version Gromox / mod_cache(4gx). The footer didn’t show a date, so no invented timestamp here β€” periodt. ✨

πŸ“¦ where this page comes from