I have this weird issue that started happening a day or two ago, I don't know the cause. The server this is happening on is running CentOS 6.3 64 bit.
For some reason, programs attempting to connect to a webpage of some external webserver instead go to the webserver running on the local machine.
For instance, when I try to "yum update", the repo's give 404 messages, and this is in /var/logs/httpd/access_log:
xx.xx.xx.xx - - [29/Jul/2012:09:18:34 -0700] "GET /centos/6.3/extras/x86_64/repodata/repomd.xml HTTP/1.1" 404 329
xx.xx.xx.xx - - [29/Jul/2012:09:18:35 -0700] "GET /packages/centos/6/x86_64/repodata/repomd.xml HTTP/1.1" 404 317
xx.xx.xx.xx - - [29/Jul/2012:09:18:35 -0700] "GET /repoforge/redhat/el6/en/x86_64/rpmforge/repodata/repomd.xml HTTP/1.1" 404 337
xx.xx.xx.xx - - [29/Jul/2012:09:18:36 -0700] "GET /centos/6.3/updates/x86_64/repodata/repomd.xml HTTP/1.1" 404 336
The xx.xx.xx.xx is one of the ip's on the local machine. It's not just happening with yum, there is another process running on the machine that goes to an external webpage to just signal a heartbeat request, that also gets redirected to the httpd server for whatever reason.
The only thing I could think of was some rule getting added to iptables, I backup up the current rules and then flushed iptables, and the problem still persists. There have also been no recent changes to the httpd configuration or /etc/hosts.