Mongoose Web Serve 简单的web服务器

openkk 8年前

简介:

Mongoose Web Server是一款易于使用的Web服务器,它可以嵌入到其它应用程序中,为其提供Web接口。

官网:

http://code.google.com/p/mongoose/

下载地址:

http://code.google.com/p/mongoose/downloads/list

用法:

http://code.google.com/p/mongoose/wiki/MongooseManual

示例:

EXAMPLES          mongoose -r /var/www -s /etc/cert.pem -p 8080,8043s                  Start serving files from /var/www. Listen on port 8080 for HTTP,                  and 8043 for HTTPS connections.  Use /etc/cert.pem as SSL cer-                  tificate file.                  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.                  mongoose -w **=/my/script.cgi                  Invoke /my/script.cgi for every incoming request, regardless of                  the URL