A minimal but flexible directory listing server
e9408312e1
Instead of providing a function for each entry-type, use a small static lookup-table and one function to rule them all. In the future, in case the list grows, we might think about implementing it with a small hash-lookup, but currently, it's easy enough synchronizing the enum and the array. While at it, improve the logic in the code itself by using logical OR's instead of AND's. |
||
---|---|---|
arg.h | ||
config.def.h | ||
config.mk | ||
LICENSE | ||
Makefile | ||
quark.c | ||
README |
quark - simple http get server ============================== quark is an extremly small and simple http get-only web server. It only serves static pages on a single host. 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 install Running quark ------------ $ cd <web-root> $ sudo quark