nginx
d9394952
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
把nginx当完全tcp端口转发器
在nginx.conf里加入 stream { server { listen 18443; proxy_pass 58.xxx.xxx.xxx:8443; } } centos7中yum安装的ngixn其实是带stream模块的,但默认没有加载,需要在nginx.conf首行加入: load_module /usr/lib64/nginx/m...原创 2019-03-09 21:44:59 · 4359 阅读 · 0 评论 -
nginx日志配置笔记:if条件
1、特定条件写日志: 参照: https://stackoverflow.com/questions/19011719/how-to-write-only-logs-with-200-status http://nginx.org/en/docs/http/ngx_http_map_module.html http { map $status $normal { ...原创 2019-03-28 15:54:46 · 995 阅读 · 0 评论 -
使用fail2ban预防被挖洞的笔记
参考:https://blog.csdn.net/dorisnzy/article/details/82926067 1、安装fail2ban: yum -y install epel-release yum -y install fail2ban 2、配置fail2ban: 修改/etc/fail2ban/jail.conf [default] destemail = abc@de...原创 2019-06-06 09:40:18 · 625 阅读 · 0 评论
分享