宇宙主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

欧基零壹微头条IP归属甄别会员请立即修改密码
楼主: 每次醒来

[Windows VPS] 求助看下nginx日记..........

[复制链接]
 楼主| 发表于 2013-1-12 18:10:49 | 显示全部楼层
单手摘月 发表于 2013-1-12 18:07
你沒分配RAM給“one”

在nginx.conf的http層加入limit_zone one $binary_remote_addr 10m; ...

应该是 冰剑说的没组件 - -

上面的我加了一样报错........................
.
..
.

我安装的nginx编译用的是这个 求助怎么加这个所需的模块
  1. ./configure --prefix=/usr/local/nginx --user=www --group=www --with-http_stub_status_module --with-http_ssl_module --with-cc-opt='-O3'
复制代码
发表于 2013-1-12 18:12:07 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2013-1-12 18:12:34 | 显示全部楼层
本帖最后由 每次醒来 于 2013-1-12 18:13 编辑
单手摘月 发表于 2013-1-12 18:12
nginx版本是?

这个模块默认就有的。。


..最新的稳定版 1.2.6  我现在这个nginx代码如下
  1. #user  nobody;
  2. worker_processes  1;

  3. #error_log  logs/error.log;
  4. #error_log  logs/error.log  notice;
  5. #error_log  logs/error.log  info;

  6. #pid        logs/nginx.pid;


  7. events {
  8.     worker_connections  1024;
  9. }


  10. http {
  11.     include       mime.types;
  12.     default_type  application/octet-stream;
  13.     #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
  14.     #                  '$status $body_bytes_sent "$http_referer" '
  15.     #                  '"$http_user_agent" "$http_x_forwarded_for"';

  16. access_log /dev/null;
  17. error_log /dev/null;

  18.     sendfile        on;
  19.     #tcp_nopush     on;

  20.     #keepalive_timeout  0;
  21.     keepalive_timeout  65;

  22.     gzip  on;

  23.     server {
  24.         listen       80;
  25.         server_name  localhost;
  26.         #charset koi8-r;

  27.         #access_log  logs/host.access.log  main;

  28.         location / {
  29.             root   html;
  30.             index  index.html index.htm;
  31.         }

  32.         #error_page  404              /404.html;

  33.         # redirect server error pages to the static page /50x.html
  34.         #
  35.         error_page   500 502 503 504  /50x.html;
  36.         location = /50x.html {
  37.             root   html;
  38.         }

  39.         # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  40.         #
  41.         #location ~ \.php$ {
  42.         #    proxy_pass   http://127.0.0.1;
  43.         #}

  44.         # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  45.         #
  46.         #location ~ \.php$ {
  47.         #    root           html;
  48.         #    fastcgi_pass   127.0.0.1:9000;
  49.         #    fastcgi_index  index.php;
  50.         #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
  51.         #    include        fastcgi_params;
  52.         #}

  53.         # deny access to .htaccess files, if Apache's document root
  54.         # concurs with nginx's one
  55.         #
  56.         #location ~ /\.ht {
  57.         #    deny  all;
  58.         #}
  59.     }


  60.     # another virtual host using mix of IP-, name-, and port-based configuration
  61.     #
  62.     #server {
  63.     #    listen       8000;
  64.     #    listen       somename:8080;
  65.     #    server_name  somename  alias  another.alias;

  66.     #    location / {
  67.     #        root   html;
  68.     #        index  index.html index.htm;
  69.     #    }
  70.     #}


  71.     # HTTPS server
  72.     #
  73.     #server {
  74.     #    listen       443;
  75.     #    server_name  localhost;

  76.     #    ssl                  on;
  77.     #    ssl_certificate      cert.pem;
  78.     #    ssl_certificate_key  cert.key;

  79.     #    ssl_session_timeout  5m;

  80.     #    ssl_protocols  SSLv2 SSLv3 TLSv1;
  81.     #    ssl_ciphers  HIGH:!aNULL:!MD5;
  82.     #    ssl_prefer_server_ciphers   on;

  83.     #    location / {
  84.     #        root   html;
  85.     #        index  index.html index.htm;
  86.     #    }
  87.     #}
  88. include wwww/*.conf;
  89. }
复制代码
发表于 2013-1-12 18:14:47 | 显示全部楼层
每次醒来 发表于 2013-1-12 17:12
这怎么封一大堆不一样的 有美国 有韩国 - -

既然不能拒绝,那就忍着吧.
注意一下你的主题或网站会不会有访问这个文件的地方.也可能是主题的问题照成的这么多...
发表于 2013-1-12 18:15:56 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2013-1-12 18:16:09 | 显示全部楼层
采花大盗 发表于 2013-1-12 18:14
既然不能拒绝,那就忍着吧.
注意一下你的主题或网站会不会有访问这个文件的地方.也可能是主题的问题 ...

它访问路劲文件夹都不存在的
 楼主| 发表于 2013-1-12 18:19:36 | 显示全部楼层
单手摘月 发表于 2013-1-12 18:15
在nginx.conf的http层加入
limit_conn_zone $binary_remote_addr zone=one:10m;

这个姿势正确了  测试没有报错
发表于 2013-1-12 18:22:55 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2013-1-12 18:27:33 | 显示全部楼层
本帖最后由 每次醒来 于 2013-1-12 22:47 编辑

  咋回事 转了攻击目录?


2013/01/12 18:24:20 [error] 24962#0: *10289875 open() "/var/wwww/网站目录/58DC4AC5B7B1662E5436BAB01E258851C51E3A54/[杩呴浄涓嬭浇t.nn]鍒€鍓戠鍩焄绗?0璇漖.mp4&name=[鏉╁懘娴勬稉瀣祰22]閸掆偓閸撴垹顨i崺鐒勭粭" failed (2: No such file or directory), client: 113.70.152.79, server: 我的网站域名, request: "GET /58DC4AC5B7B1662E5436BAB01E258851C51E3A54/%5B%E8%BF%85%E9%9B%B7%E4%B8%8B%E8%BD%BD6369.net%5D%E5%88%80%E5%89%91%E7%A5%9E%E5%9F%9F%5B%E7%AC%AC20%E8%AF%9D%5D.mp4&name=%5B%E6%9D%A9%E5%91%B4%E6%B5%84%E6%B6%93%E5%AC%AD%E6%B5%876369.net%5D%E9%8D%92%E2%82%AC%E9%8D%93%E6%88%A0%EE%9A%A3%E9%8D%A9%E7%84%84%E7%BB%97?0%E7%92%87%E6%BC%96.mp4 HTTP/1.1", host: "我的网站域名", referrer: "http://我的网站域名/xiangqing/dongman896.html"
2013/01/12 18:24:20 [error] 24962#0: *10289876 open()
发表于 2013-1-12 18:29:29 | 显示全部楼层
每次醒来 发表于 2013-1-12 18:16
它访问路劲文件夹都不存在的

mjj的,你得罪谁了?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|兜哪儿主机交流论坛

GMT+8, 2024-9-20 17:23 , Processed in 0.063035 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表