PHP应用程序在端口80连接回托管服务器

PHP应用程序在端口80连接回托管服务器,php,apache,Php,Apache,从昨天起,我就一直在为这个问题绞尽脑汁。如果你能帮忙,我将非常感激 设置: 22.33.44.55 - - [21/Oct/2013:19:14:39 +0100] 200 /home/xxxxx/public_html/index.php 303396 www.example.com "-" "-" 22.33.44.54 - - [21/Oct/2013:19:14:40 +0100] 302 /home/xxxxx/public_html/8973.jpg 317 example.co

从昨天起,我就一直在为这个问题绞尽脑汁。如果你能帮忙,我将非常感激

设置:

22.33.44.55 - - [21/Oct/2013:19:14:39 +0100] 200 /home/xxxxx/public_html/index.php 303396 www.example.com "-" "-"  
22.33.44.54 - - [21/Oct/2013:19:14:40 +0100] 302 /home/xxxxx/public_html/8973.jpg 317 example.com "-" "-"  
22.33.44.55 - - [21/Oct/2013:19:14:30 +0100] 200 /home/xxxxx/public_html/index.php 303396 www.example.com "-" "-"  
22.33.44.54 - - [21/Oct/2013:19:14:42 +0100] 302 /home/xxxxx/public_html/8973.jpg 317 example.com "-" "-"
我们的网站配置为在IP 22.33.44.54(例如)上运行。服务器有一个作为22.33.44.55分配给它的辅助IP

问题:

22.33.44.55 - - [21/Oct/2013:19:14:39 +0100] 200 /home/xxxxx/public_html/index.php 303396 www.example.com "-" "-"  
22.33.44.54 - - [21/Oct/2013:19:14:40 +0100] 302 /home/xxxxx/public_html/8973.jpg 317 example.com "-" "-"  
22.33.44.55 - - [21/Oct/2013:19:14:30 +0100] 200 /home/xxxxx/public_html/index.php 303396 www.example.com "-" "-"  
22.33.44.54 - - [21/Oct/2013:19:14:42 +0100] 302 /home/xxxxx/public_html/8973.jpg 317 example.com "-" "-"
昨天我们的服务器超载了。它非常频繁地攻击MaxClient(通常我们一次在服务器上有大约85-90个连接)。这种情况通常不会发生,因此我们开始调查,发现Port80上约45-50%的连接来自我们自己的IP,而该网站正运行在该IP上。服务器支持人员说问题出在PHP应用程序上,它正在连接回Port80上的服务器

来自Apache访问日志:

22.33.44.55 - - [21/Oct/2013:19:14:39 +0100] 200 /home/xxxxx/public_html/index.php 303396 www.example.com "-" "-"  
22.33.44.54 - - [21/Oct/2013:19:14:40 +0100] 302 /home/xxxxx/public_html/8973.jpg 317 example.com "-" "-"  
22.33.44.55 - - [21/Oct/2013:19:14:30 +0100] 200 /home/xxxxx/public_html/index.php 303396 www.example.com "-" "-"  
22.33.44.54 - - [21/Oct/2013:19:14:42 +0100] 302 /home/xxxxx/public_html/8973.jpg 317 example.com "-" "-"

对代码进行grep并搜索127.0.0.1、IP 22.33.44.55和localhost

find . -name \*.php | xargs grep 127.0.0.1
find . -name \*.php | xargs grep localhost

您可能有
include(“http://localhost/mylibrary.php");在那里的某个地方,从贪婪的搜索和替换或实习中。

对代码进行grep,搜索127.0.0.1、IP 22.33.44.55和本地主机

find . -name \*.php | xargs grep 127.0.0.1
find . -name \*.php | xargs grep localhost

您可能有
include(“http://localhost/mylibrary.php");在那里的某个地方,从贪婪的搜索和替换或实习生那里。

问题是什么?我想知道如何找到导致此问题的应用程序或页面。问题是什么?我想知道如何找到导致此问题的应用程序或页面。