-
Notifications
You must be signed in to change notification settings - Fork 6
/
miniquark.1
49 lines (49 loc) · 1.03 KB
/
miniquark.1
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
39
40
41
42
43
44
45
46
47
48
49
.Dd September 24, 2024
.Dt MINIQUARK 1
.Os
.Sh NAME
.Nm miniquark
.Nd a minimal web server for retrieving files
.Sh SYNOPSIS
.Nm
.Fl p Ar port
.Op Fl h Ar host
.Op Fl d Ar dir
.Sh DESCRIPTION
.Nm
is a web server supporting GET/HEAD requests and is easily launched as
unprivileged user to provide HTTP access a local directory.
.Pp
The options are as follows:
.Bl -tag -width 8n
.It Fl p Ar port
The
.Ar port
to listen on for incoming connections.
.It Fl d Ar dir
Switch to the specified directory.
.It Fl h Ar host
Set the hostname or IP address to listen on.
The default is 127.0.0.1.
.El
.Pp
If run with a user ID of 0,
.Nm
will chroot to the current directory.
.Sh FEATURES
The following request headers are recognized
.Bl -tag -width 0n
.It Range:
Returns 206 Partial Content and the Content-Range header is set.
.It If-Modified-Since:
Returns 304 Not Modified or "200 OK" based on the file timestamp.
.It User-Agent:
Used for log messages.
.El
.Sh HISTORY
.Nm
was based on
.Lk https://git.suckless.org/quark
and bundled with
.Xr rset 1
in July 2020.