1
icedx 2014-12-15 13:53:40 +08:00
上配置
|
2
yanwen 2014-12-15 14:00:53 +08:00
我的服务器也是nginx的。。话说 怎么会被别人拿来做代理的???
|
3
lzk800 2014-12-15 14:00:57 +08:00
你应该是自己开启了反代功能,然后没有限制来源IP地址吧
|
4
snail1988 OP server {
listen 80 default_server; listen [::]:80 default_server ipv6only=on; root /usr/share/nginx/html/yiitimeserver/frontend/web; index index.php; # Make site accessible from http://localhost/ server_name localhost; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ /index.php?$args; # Uncomment to enable naxsi on this location # include /etc/nginx/naxsi.rules } location ~ \.php$ { try_files $uri =404; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi_params; } # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # location ~ /\.ht { deny all; } } |
6
shiny 2014-12-15 14:04:32 +08:00
我觉得只是别人在扫描 http 代理吧?
|
7
snail1988 OP 23.225.206.4 - - [15/Dec/2014:06:12:21 +0000] "GET http://www.so.com/?rands=_2510213733289952325356524 HTTP/1.1" 200 114 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2;Windows NT 5.1;Windows NT 5.3; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
23.225.206.4 - - [15/Dec/2014:06:12:21 +0000] "GET http://23.225.206.4/vs.php?rands=_1400492510623092681449488 HTTP/1.1" 404 579 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2;Windows NT 5.1;Windows NT 5.3; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)" 23.225.206.4 - - [15/Dec/2014:06:12:21 +0000] "GET http://www.baidu.com/?rands=_14004103394224869041620016 HTTP/1.1" 200 114 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2;Windows NT 5.1;Windows NT 5.3; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)" 23.225.206.4 - - [15/Dec/2014:06:12:21 +0000] "GET http://www.soso.com/?rands=_2922020291983713940733336 HTTP/1.1" 200 114 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2;Windows NT 5.1;Windows NT 5.3; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)" 23.225.206.4 - - [15/Dec/2014:06:12:21 +0000] "GET http://218.59.238.92:8080/?rands=_2922022255724425120863444 HTTP/1.1" 200 114 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2;Windows NT 5.1;Windows NT 5.3; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)" |
8
snail1988 OP 这种log应该是做代理上网呢吧?
|
9
lzk800 2014-12-15 14:15:26 +08:00 1
server段中加入以下代码用于限制域名访问:
valid_referers server_name *.abc.com abc.com; if ($invalid_referer) { return 403; } |
10
snail1988 OP |
12
lqs 2014-12-15 14:29:22 +08:00
只是在扫描代理而已,实际上返回的是你自己网站的内容。可以忽略掉。
|
14
tftk 2014-12-15 19:43:25 +08:00
主配置文件里加一条默认配置,没配置的域名都返回404 。
server { return 404; } |
15
snail1988 OP |
16
andyfoo 2017-10-16 01:38:38 +08:00
刚看到自己服务器这日志惊了一下
|