miniquark
—
a minimal web server for retrieving files
miniquark |
-p port
[-h host]
[-d dir] |
miniquark
is a web server supporting GET/HEAD requests
and is easily launched as unprivileged user to provide HTTP access a local
directory.
The options are as follows:
-p
port
- The port to listen on for incoming connections.
-d
dir
- Switch to the specified directory.
-h
host
- Set the hostname or IP address to listen on. The default is
127.0.0.1.
If run with a user ID of 0, miniquark
will
chroot to the current directory.
The following request headers are recognized
- Range:
- Returns 206 Partial Content and the Content-Range header is set.
- If-Modified-Since:
- Returns 304 Not Modified or "200 OK" based on the file
timestamp.
- User-Agent:
- Used for log messages.