技术头条 - 一个快速在微博传播文章的方式     搜索本站
您现在的位置首页 --> 安全 --> nginx防hashdos模块使用帮助

nginx防hashdos模块使用帮助

浏览:2148次  出处信息

    nginx,hashdos

     经过上周一周朋友们帮忙测试和bug fix,nginx_http_hashdos_module已经达到可以线上使用的水平,下面是使用记录。

     下载

    #wget --no-check-certificate https://github.com/54chen/nginx-http-hashdos-module/zipball/master

     #mv master nginx_hashdos.zip

     #unzip nginx_hashdos.zip

    编译安装

    #tar zxvf nginx-1.0.xx.tar.gz

     #cd nginx-1.0.xx/

     #./configure --prefix=/opt/soft/nginx --with-pcre --user=www --group=www --with-http_stub_status_module --with-http_ssl_module --add-module=../54chen-nginx-http-hashdos-module-f84d909

     #make && make install

    配置注意事项

     在http段,增加如下:

     hashdos on;

     body_max_count 1000;

    在各自的location段,要按照业务情况来加:

    client_body_buffer_size 2m;

     client_max_body_size 2m;

    *上述两个值一定要相等。

    如果是普通的discuz,上传上限是1m的,可以修改为1m。

     如果是没有上传功能的普通网站,建议修改为512k。

建议继续学习:

  1. 配置Nginx+uwsgi更方便地部署python应用    (阅读:105194)
  2. 搜狐闪电邮箱的 Nginx/Postfix 使用模式    (阅读:32339)
  3. 解析nginx负载均衡    (阅读:14029)
  4. Nginx模块开发入门    (阅读:9594)
  5. 检查nginx配置,重载配置以及重启的方法    (阅读:8795)
  6. Cacti 添加 Nginx 监控    (阅读:8716)
  7. Nginx+FastCgi+Php 的工作机制    (阅读:8633)
  8. nginx的配置文件    (阅读:8585)
  9. 奇怪的 Nginx 的 upstream timed out 引起响应 502    (阅读:7552)
  10. 解决IE6从Nginx服务器下载图片不Cache的Bug    (阅读:6960)
QQ技术交流群:445447336,欢迎加入!
扫一扫订阅我的微信号:IT技术博客大学习
后一篇:Mysql 安全 >>
© 2009 - 2024 by blogread.cn 微博:@IT技术博客大学习

京ICP备15002552号-1