简介:
mongoose是一款small,fast,easy to use 的web服务器。使用CGI,SSL,MD5授权。
mongoose不与终端进行分离(1),使用当前的工作目录作为web服务器的root目录,除非使用 -r 选项。它能够同时监听多个端口。如为了能监听HTTP 协议端口 80和HTTPS协议端口 443,在启动mongoose时须输入:mongoose -s cert.pem -p 80,443s
与其他web服务器不同,mongoos不一定要把CGI脚本放在一个特别的目录下,可以放在任何地方。CGI(and SSI)文件能被mongoose根据它们的文件扩展名而识别。
如果启动时没有给定参数,mongoose将在与mongoos 执行文件(bin)同一个目录下面搜索名为“mongoose.conf”的配置文件进行配置。另一种选择是,在启动参数中包含有你指定的文件名。
使用示范: mongoose -r /var/www,/aa=/tmp,/bb=/etc -s /etc/cert.pem -p 8080,8043s Start listening on port 8080 for HTTP, and 8043 for HTTPS connec- tions. Use /etc/cert.pem as SSL certificate file. Web root is /var/www. In addition, map directory /tmp to URI /aa, directory /etc to URI /bb.
mongoose -l -0.0.0.0/0,+10.0.0.0/8,+1.2.3.4 Deny connections from everywhere, allow only IP address 1.2.3.4 and all IP addresses from 10.0.0.0/8 subnet to connect.
COPYRIGHT mongoose is licensed under the terms of the MIT license.
AUTHOR Sergey Lyubka <valenok@gmail.com>.