A minimal but flexible directory listing server
Find a file
Ivan Delalande e42bb27846 change the behavior of docroot
Change the behavior of docroot, which is now used as a prefix path for
all file operations related to static files. And add chrootdir, which is
just the old docroot behavior and allows to control the path into which
quark will chroot.

Not having properly distinct configuration variables for chroot,
document root and CGI root was specially annoying since commit 2822488
which allowed users to retrieve the CGI script or binary by just
guessing its path, since quark was chrooting into docroot before
anything else, and thus the CGI script/binary was in the user accessible
path.

This is implemented by moving the reqbuf buffer in the middle of a
bigger buffer, reqpath. That buffer contains the value of docroot at its
beginning and reqbuf simply points to the first byte after this value.
2014-11-30 23:35:10 +01:00
arg.h Add arg.h 2014-07-28 13:33:58 +02:00
config.def.h change the behavior of docroot 2014-11-30 23:35:10 +01:00
config.mk cgi: parse Status: header 2014-08-20 12:58:10 +02:00
LICENSE Add arg-parser and move copyright-info to LICENSE 2014-07-28 13:42:26 +02:00
Makefile quark.1: add manpage 2014-08-20 20:42:58 +02:00
quark.1 change the behavior of docroot 2014-11-30 23:35:10 +01:00
quark.c change the behavior of docroot 2014-11-30 23:35:10 +01:00
README update README 2014-08-20 20:42:54 +02:00

quark - simple HTTP server
==========================
quark is a small and simple HTTP web server. It serves static
pages on a single host and has basic CGI support.


Installation
------------
Edit config.mk to match your local setup. quark is installed into
/usr/local/bin by default.

Afterwards enter the following command to build and install quark
(if necessary as root):

    $ make clean; make
    $ sudo make install


Running quark 
------------
    $ cd <web-root>
    $ sudo quark