GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
QUARK(1) FreeBSD General Commands Manual QUARK(1)

quark
simple static web server

quark -h host -p port [
-u user
] [
-g group
] [
-n num
] [
-d dir
] [
-l
] [
-i file
] [
-v vhost
] ... [
-m map
] ...

quark -U file [
-p port
] [
-u user
] [
-g group
] [
-n num
] [
-d dir
] [
-l
] [
-i file
] [
-v vhost
] ... [
-m map
] ...

quark is a simple HTTP GET/HEAD-only web server for static content.

dir
Serve dir after chrooting into it. The default is ".".
group
Set group ID when dropping privileges, and in socket mode the group of the socket file, to the ID of group. The default is "nogroup".
host
Use host as the server hostname.
file
Set file as the directory index. The default is "index.html".
Enable directory listing.
map
Add the target prefix mapping rule specified by map, which has the form “chost from to”, where each element is separated with whitespace.
The prefix from of all matching targets, especially only of those requests for the canonical virtual host chost when virtual hosts are specified, is then replaced with to. If no virtual hosts are given, chost is ignored.
num
Set the maximum number of threads to num. The default is 512.
port
In host mode, listen on port port for incoming connections. In socket mode, use port for constructing proper virtual host redirects on non-standard ports.
file
Create the UNIX-domain socket file, listen on it for incoming connections and remove it on exit.
user
Set user ID when dropping privileges, and in socket mode the user of the socket file, to the ID of user. The default is "nobody".
vhost
Add the virtual host specified by vhost, which has the form “chost regex dir [prefix]”, where each element is separated with whitespace.
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 target with prefix. If any virtual hosts are specified, all requests on non-matching hosts are discarded.

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.

Laslo Hunhold <dev@frign.de>
2018-03-05 suckless.org

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.