Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
QUARK(1)		FreeBSD	General	Commands Manual		      QUARK(1)

NAME
     quark -- simple static web	server

SYNOPSIS
     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] ...

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

OPTIONS
     -d	dir  Serve dir after chrooting into it.	 The default is	".".

     -g	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".

     -h	host
	     Use host as the server hostname.

     -i	file
	     Set file as the directory index.  The default is "index.html".

     -l	     Enable directory listing.

     -m	map  Add the target prefix mapping rule	specified by map, 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 targets is	replaced with to, op-
	     tionally limited to the canonical virtual host chost.  If no vir-
	     tual hosts	are given, chost is ignored.

     -n	num  Set the maximum number of threads to num.	The default is 512.

     -p	port
	     In	host mode, listen on port port for incoming connections.  In
	     socket mode, use port for constructing proper virtual host	redi-
	     rects on non-standard ports.

     -U	file
	     Create the	UNIX-domain socket file, listen	on it for incoming
	     connections and remove it on exit.

     -u	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".

     -v	vhost
	     Add the virtual host specified by vhost, 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 dif-
	     fer, using	the directory dir as the root directory, optionally
	     prefixing the target with prefix.	If any virtual hosts are spec-
	     ified, 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>

suckless.org			  May 6, 2021			  suckless.org

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | CUSTOMIZATION | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=quark&sektion=1&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help