delete both the files
/etc/hosts.allow
/etc/hosts.deny

i hope you havent modified apache config files. if you did go back to their original state if you made a backup of the config files.

i think this should work.