# Mongoose 5.6.9

This is my own build of the Mongoose web server for Windows. Based on the Mongoose library and web_server example from https://github.com/cesanta/mongoose/. Its main purpose is to serve for some local experiments and to respond (the 404 code) to the request for many ad and counter sites, which my `etc/hosts` file redirects to localhost.

Changes:

• The 'no-such-page' (404) response is very short.

• The log file has shorter date format and no browser agent info.

• The webserver starts as a usual windows program, not console program. Running `mongoose.exe /h` shows short help in a message window, together with the server features info, like `-AU +CGI -DAV +DL +FS -I6 +LOG +MM +PO +SSI -SSL +WS`. They correspond to the build `#define`s.

• The webserver can be shut down by accessing some url, the corresponding option is `shutdown_command`. Example: `shutdown_command /doshutdown` in the config file will allow you to shut down the server after accessing url `http://yourhost/doshutdown`.

• It's possible to specify different CGI interpreters based on the file extension, that is such files must not contain the '`#!`' string. The option is `cgi_interpreters`. Example: `cgi_interpreters .py .pyc >C:\Python\python.exe .ijs >C:\J\bin\jconsole.exe`. Indeed these files must match the cgi_pattern too.

• The first line of the CGI script files can start with '`NB.`' instead of `'#!`'. This is done for the J language.

Copyright (C) 2015, G.Pruss.