.\" $Id: lws.1.in,v 1.1 2002/08/21 21:55:52 archie Exp $ .\" .\" Copyright (c) 2002 Packet Design, LLC. .\" All rights reserved. .\" .\" Subject to the following obligations and disclaimer of warranty, .\" use and redistribution of this software, in source or object code .\" forms, with or without modifications are expressly permitted by .\" Packet Design; provided, however, that: .\" .\" (i) Any and all reproductions of the source or object code .\" must include the copyright notice above and the following .\" disclaimer of warranties; and .\" (ii) No rights are granted, in any manner or form, to use .\" Packet Design trademarks, including the mark "PACKET DESIGN" .\" on advertising, endorsements, or otherwise except as such .\" appears in the above copyright notice or in the software. .\" .\" THIS SOFTWARE IS BEING PROVIDED BY PACKET DESIGN "AS IS", AND .\" TO THE MAXIMUM EXTENT PERMITTED BY LAW, PACKET DESIGN MAKES NO .\" REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING .\" THIS SOFTWARE, INCLUDING WITHOUT LIMITATION, ANY AND ALL IMPLIED .\" WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, .\" OR NON-INFRINGEMENT. PACKET DESIGN DOES NOT WARRANT, GUARANTEE, .\" OR MAKE ANY REPRESENTATIONS REGARDING THE USE OF, OR THE RESULTS .\" OF THE USE OF THIS SOFTWARE IN TERMS OF ITS CORRECTNESS, ACCURACY, .\" RELIABILITY OR OTHERWISE. IN NO EVENT SHALL PACKET DESIGN BE .\" LIABLE FOR ANY DAMAGES RESULTING FROM OR ARISING OUT OF ANY USE .\" OF THIS SOFTWARE, INCLUDING WITHOUT LIMITATION, ANY DIRECT, .\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, PUNITIVE, OR CONSEQUENTIAL .\" DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, LOSS OF .\" USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY THEORY OF .\" LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF .\" THE USE OF THIS SOFTWARE, EVEN IF PACKET DESIGN IS ADVISED OF .\" THE POSSIBILITY OF SUCH DAMAGE. .\" .Dd August 19, 2002 .Dt LWS 1 .Os .Sh NAME .Nm lws .Nd the lil' web server .Sh SYNOPSIS .Nm .Op Fl D .Op Fl d Ar directory .Sh DESCRIPTION .Nm is a lightweight web server which uses .Xr pthreads 3 for multi-tasking and .Xr libpdel 3 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. .Pp .Nm 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 .Xr tmpl 3 HTML templates. .Pp .Nm maintains a self-rotating .Xr logfile 3 error log, with optional support for logging via syslog as well. .Pp .Nm is intended to demonstrate features of the .Xr libpdel 3 library, and to be a lightweight web server for simple applications. .Pp The options are as follows: .Bl -tag -width Ds .It Fl D Run in debug mode: don't fork into the background, enable typed memory statistics, and make template files directly viewable. .It Fl d Change into .Ar directory before starting up. If not specified, the default working directory is .Pa "/usr/local/etc/lws" . .El .Sh FILES .It .Bl -tag -width /usr/local/etc/lwsXX -compact .It Pa /usr/local/etc/lws Default working directory. .It Pa config.xml Configuration file. .El .Sh SEE ALSO .Xr http_server 3 , .Xr http_servlet_cookieauth 3 , .Xr http_servlet_file 3 , .Xr http_servlet_redirect 3 , .Xr libpdel 3 , .Xr tmpl 3 .Sh HISTORY The PDEL library was developed at Packet Design, LLC. .Dv "http://www.packetdesign.com/" .Sh AUTHORS .An Archie Cobbs Aq archie@packetdesign.com .Sh BUGS Please report bugs to the author.