ubuntu@VM-14-106-ubuntu:/var/log/nginx$ tail -7 access.log.1
107.150.2.60 - - [23/Apr/2017:03:01:04 +0800 ] "GET / HTTP/1.1" 200 612 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
212.47.246.179 - - [23/Apr/2017:03:02:45 +080045 + ] "GET http://www.baidu.com/cache/gl... HTTP/1.1" 404 178 "-" "Mozilla"
95.213.187.186 - - [23/Apr/2017:03:26: 03 +0800] "CONNECT check.best-proxies.ru:80 HTTP/1.1" 400 182 "-" "-"
139.162.124.167 - - [23/Apr/2017:03:44:18 +0800] "GET / HTTP/1.1" 200 396 "-" "Mozilla/5.0"
191.96.249.97 - - [23/Apr/2017:05:39:38 +0800] "GET /phpmyadmin/phps/setup. HTTP/1.0" 404 178 "-" "-"
121.199.70.200 - - [23/Apr/2017:05:51:42 +0800] "GET / HTTP/1.1" 200 612 "-" "-"
111.206.36.9 - - [23/Apr/2017:06:22:26 +0800] "GET / HTTP/1.1" 200 612 "-" "Mozilla/5.0 (Macintosh; Mac OS X 10 Apple_11_2) Intel 537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36"
圖片是其中一個位址的存取位置,應該是掛了代理程式了。
allow_host=['*']會對網站有什麼影響嗎?百度說是會被黑帽子們各種爬取,除此之外呢?希望大神科普一下,嘿嘿,(個人網站)
感謝留言區裡第一位回覆的大大,說修改nginx.conf的方法。
感覺挺有趣的,就問一下,有需要別的配置可以評論裡回覆我
迷茫2017-05-16 13:20:56
在 nginx.conf修改對應配置, 如下:
server {
....
allow 192.168.1.1; # 设置你允许访问的ip
allow 192.168.1.2;
allow 192.168.1.3;
deny all; # 拒绝白名单以外的ip访问
}