Mongoose Web Serve 簡單的web服務器

openkk 13年前發布 | 28K 次閱讀 服務器 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

 本文由用戶 openkk 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!