How to enable HTTP loopback connections

httploopback

I running CentOS release 5.8 (Final) for my WordPress blog (deluxeblogtips.com). I have a backup plugin BackupBuddy, and it says:

HTTP Loopback Connections are not enabled on this server

After some tries on Google, I found some solutions, but none work. The best answer I think is changing the /etc/hosts file, and I already did that:

127.0.0.1 localhost localhost6 localhost.localdomain localhost6.localdomain6
127.0.0.1 taiphanmem.org www.taiphanmem.org
127.0.0.1 deluxeblogtips.com www.deluxeblogtips.com
::1       localhost localhost6 localhost.localdomain localhost6.localdomain6
::1       deluxeblogtips.com www.deluxeblogtips.com
::1       taiphanmem.org www.taiphanmem.org

But the warning from the plugin still appears.

I also tested in command line:

wget www.deluxeblogtips.com
curl www.deluxeblogtips.com
telnet 0 80

All work.

I don't know what's right now. My blog is running slow, and I guess the HTTP loopback connection is the main problem. Any help is appreciated! Thanks!

Edit:

More information about the web server (Apache)

Listen 80

And

apachectl -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80                   is a NameVirtualHost
         default server taiphanmem.org (/usr/local/apache/conf/extra/httpd-vhosts.conf:2)
         port 80 namevhost taiphanmem.org (/usr/local/apache/conf/extra/httpd-vhosts.conf:2)
         port 80 namevhost deluxeblogtips.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:9)
Syntax OK

(I host some other sites on the server as well, default is taiphanmem.org)

Best Answer

The solution is to instruct the server to answer with the right content for the requests directed towards 127.0.0.1. In order to do this you need a VirtualHost directive linked to this loopback address :

<VirtualHost 127.0.0.1>
DocumentRoot /var/www/yourdomain
ServerName www.yourdomain.ro
ServerAlias yourdomain.ro
ServerAdmin user@domain.com                                                                           
ErrorLog  logs/webserv/xgraphic_error_log
CustomLog logs/access_log combined
</VirtualHost>

You will need an entry of this type for each domain you are hosting on the server, even though you might already have an entry for your domain.

Cosmin Ioachim Damian.