我有一个 apache(部分)作为反向代理工作。它产生了 9 个甚至更多的负载!当我设置它时,我首先犯了一些错误,为所有 URL 打开它。我现在收紧它(我相信)只通过 mod_rewrite 代理我的本地 Plone:
<VirtualHost *>
RewriteEngine on
RewriteRule ^/<local_dir>(.*)$ - [L]
RewriteRule ^/(.*)$ <plone_site>/VirtualHostRoot/$1 [L,P]
当我查看 /var/log/apache2/access.log 时,我看到很多请求,例如:
59.54.112.184 - - [09/Sep/2009:14:01:52 +0200] "GET http://www.speedycpm.com/code.php?id=177&l=1 HTTP/1.0" 404 13267 "http://8cpa.0134.cn/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
124.192.187.189 - - [09/Sep/2009:14:01:55 +0200] "GET http://www.speedycpm.com/code.php?id=1030&l=2 HTTP/1.0" 404 13269 "http://8cpa.0134.cn/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
121.17.3.236 - - [09/Sep/2009:14:01:57 +0200] "GET http://bbc.mdc-berlin.de/info_icon.gif HTTP/1.0" 200 997 "http://www.promopaid.info/?ref=ppmesh" "Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)"
112.192.11.205 - - [09/Sep/2009:14:01:58 +0200] "GET http://creditburner.blueadvertise.com/n_xb300250_d.php?uid=ZGVuZ2ppZXl1ZQ== HTTP/1.0" 404 13295 "http://www.168ptc.ws/neobux.htm" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040626 Firefox/0.9.1"
121.17.3.236 - - [09/Sep/2009:14:01:58 +0200] "GET http://bbc.mdc-berlin.de/newsitem_icon.gif HTTP/1.0" 200 952 "http://www.promopaid.info/?ref=ppmesh" "Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)"
218.95.46.131 - - [09/Sep/2009:14:01:58 +0200] "GET http://www.speedycpm.com/code.php?id=1030&l=3 HTTP/1.0" 404 13269 "http://8cpa.0134.cn/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
121.17.3.236 - - [09/Sep/2009:14:02:02 +0200] "GET http://bbc.mdc-berlin.de/spinner.gif HTTP/1.0" 200 2037 "http://www.promopaid.info/?ref=ppmesh" "Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)"
218.95.46.131 - - [09/Sep/2009:14:02:05 +0200] "GET http://creditburner.blueadvertise.com/n_xb300250_d.php?uid=ZGVuZ2ppZXl1ZQ== HTTP/1.0" 404 13295 "http://www.168ptc.ws/neobux.htm" "Mozilla/4.7 [en] (Win98; I)"
211.157.108.223 - - [09/Sep/2009:14:02:06 +0200] "GET http://creditburner.blueadvertise.com/n_xb46860_d.php?uid=NTM2NTQ4 HTTP/1.0" 404 13277 "http://fininfo.org" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
它们都由 404 错误文档回答,所以我假设这些请求被拒绝。那么有什么我可以调的吗?这只是我们小组的一个小型网络服务器,所以任何花哨的负载平衡都是不可能的。
问候, 安德烈亚斯