MongooseManual

43 篇文章 0 订阅
17 篇文章 0 订阅

 简介:

mongoose是一款small,fast,easy to use 的web服务器。使用CGISSLMD5授权。

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>.


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值