LWS - The Lil' Web Server 


What is it?

LWS is a lightweight web server which uses pthreads(3) for multi-tasking and the PDEL library for HTTP, HTTPS, and configurable servlet support. The server can be configured via a buit-in admin web interface, or by manually editing the XML configuration file.

LWS supports multiple HTTP and HTTPS servers, each containing multiple virtual hosts. Each virtual host has a configurable list of servlets. The supported servlets types are file, redirect, and cookieauth. The file servlet includes optional support for tmpl(3) HTML templates.

LWS maintains a self-rotating logfile(3) error log, with optional support for logging via syslog as well.

LWS is intended to demonstrate features of the PDEL library, and to be a lightweight web server for simple applications.

This web site is running LWS.

Supported Platforms

LWS should run on any platform supported by the PDEL library.

The source distribution includes a Makefile and a GNUmakefile. Typing ``make'' on a BSD-ish platform should automatically choose the former, which compiles in certain BSD-specific features, while Linux-ish platforms with gmake installed as the standard make should automatically use the latter.

Documentation

The LWS man page is here.

More documentation should be added...

Getting it

If you're running FreeBSD, your best bet is to use the FreeBSD ports system to install LWS. Click here for the FreeBSD port of LWS.

If you're running Linux, or you want to build it manually, here is the source tarball.

[ DellRoad Home ]