A minimal but flexible directory listing server
7cd3150df7
On each request send "last-modified" header with the modification time of each file. the client will store this field and send it on the next request(s). On the server check the "if-modified-since" field with the modified date sent by the client, depending on this send all the data or the "304 not modified" http status. CAVEAT: it is assumed the exact field will be send by the client, no date/time conversion is done for simplicity sake, as far as that's possible with http ;) |
||
---|---|---|
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