QUARK(1)
π¦ NAME π¦
Hiii bestie π welcome to QUARK(1). The command is quark β simple static web server. Short name, main character energy, no cap.
β¨ SYNOPSIS β¨
quark -p port [-h host] [-u user] [-g group] [-s num] [-t num] [-d dir]
[-l] [-i file] [-v vhost] ... [-m map] ...
quark -U file [-p port] [-u user] [-g group] [-s num] [-t num] [-d dir]
[-l] [-i file] [-v vhost] ... [-m map] ...
πΈ DESCRIPTION πΈ
Okay so quark is a simple HTTP GET/HEAD-only web server for static content. It supports virtual hosts (see -v), explicit redirects (see -m), directory listings (see -l), conditional "If-Modified-Since"-requests (RFC 7232), range requests (RFC 7233) and well-known URIs (RFC 8615), while refusing to serve hidden files and directories. That hidden-file boundary is the vibe, bestie.
π OPTIONS π
-ddir β Servedirafter chrooting into it. The default is..-ggroup β Set group ID when dropping privileges, and in socket mode the group of the socket file, to the ID ofgroup. The default isnogroup.-hhost β Usehostas the server hostname. The default is the loopback interface (i.e.localhost).-ifile β Setfileas the directory index. The default isindex.html.-lβ Enable directory listing.-mmap β Add the URI prefix mapping rule specified bymap, which has the form"from to [chost]", where each element is separated with spaces (0x20) that can be escaped with'\'.
The prefix from of all matching URIs is replaced with to, optionally limited to the canonical virtual host chost. If no virtual hosts are given, chost is ignored.
-pport β In host mode, listen onportfor incoming connections. In socket mode, useportfor constructing proper virtual host redirects on non-standard ports.-Ufile β Create the UNIX-domain socket file, listen on it for incoming connections and remove it on exit.-snum β Set the number of connection slots per worker thread tonum. The default is64.-tnum β Set the number of worker threads tonum. The default is4.-uuser β Set user ID when dropping privileges, and in socket mode the user of the socket file, to the ID ofuser. The default isnobody.-vvhost β Add the virtual host specified byvhost, which has the form"chost regex dir [prefix]", where each element is separated with spaces (0x20) that can be escaped with'\'.
A request matching the virtual host regular expression regex (see regex(3)) is redirected to the canonical host chost, if they differ, using the directory dir as the root directory, optionally prefixing the URI with prefix. If any virtual hosts are specified, all requests on non-matching hosts are discarded.
π CUSTOMIZATION π
quark can be customized by creating a custom config.h from config.def.h and (re)compiling the source code. This keeps it fast, secure and simple.
π AUTHORS π
Laslo Hunhold <dev@frign.de>
Bye bestie π β this page comes from suckless.org, dated 2020-09-27, for QUARK(1). Periodt.
π¦ where this page comes from
- nixos 26.05: quark-unstable 2021-02-22
- nixpkgs unstable: quark 0-unstable-2021-02-22
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms