Mongoose Web Serve 簡單的web服務器
簡介:
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