Mongoose (server)

Mongoose is a standalone or embedded web server written in C, which is designed to be very small, multi-threaded, and portable; it is the successor to shttpd. Mongoose is free software / open source currently hosted on Google Code, and is distributed under the MIT License.

It is less than 100KB (as of ver. 2.7) in both Windows and Linux executables. It was written and is maintained by Sergey Lyubka of Dublin, Ireland.

Features

  • Has been compiled successfully on many systems
  • Supports exclusion and inclusion of client requests by numeric IP address
  • Listens on any port (8080 by default), or on a list of subnet IPs and ports
  • Executes any CGI processor to serve pages written in PHP, Perl, Python, compiled languages, and shell languages
  • Implements a small subset of Server-Side Includes (SSI)
  • Supports secure pages (HTTPS/SSL and basic authentication)
  • Can run as a Windows Service
  • Maintains an access log and an error log (similar to Apache)
  • Can recognize a special URI for modifying the configuration while running
  • Can password-protect any file
  • Supports aliases for directories (similar to Apache)
  • Supports the GET, POST, PUT, and DELETE methods
  • Can show a listing of any served directory, or prohibit serving directories
  • To be released in a few days: Can handle HTTP errors by calling an optional separate page for each error, or a common page for all remaining errors, or using simple text

See also