Nginx

在Windows上做的实验。

1.下载:http://nginx.org/en/download.html 下 nginx/Windows-1.12.0 直接浏览器打开localhost查看是否成功

2.config基础

1)congfig 结构

使用配置:主要配置用户组,windows下不指定;工作进程,错误日志等

event{}:IO模型,连接参数等

http{server{location/{}}}服务相关项

其余参考:

http://xuding.blog.51cto.com/4890434/1743666

2)防御ab,webbench

http://www.tuicool.com/articles/eUJ3Mn

不确定http_user_agent 的名字大小写时可以考虑用~*匹配

3)重定向

http://lansgg.blog.51cto.com/5675165/1575274

4)负载均衡

http://freeloda.blog.51cto.com/2033581/1288553

5)IP限制

http://blog.wuxu92.com/request-rate-limit-and-access-deny/

posted @ 2017-04-25 14:03  Run_dream  阅读(142)  评论(0编辑  收藏  举报