Cannot access local domain in same server

I have couple of websites setup on CentOS 5.3 in LAMP environment

All my websites working fine outside, but i cannot access any of the website in the same server.

For example, lets say i have a web site

if i go to server and try to download a page on web site using wget its fails, but everything working fine out side

following command timeout on same box

wget -dv
Setting --verbose (verbose) to 1
DEBUG output created by Wget 1.11.4 Red Hat modified on linux-gnu.

--2010-01-08 12:20:13--
Caching =>
Connecting to||:80...

My Apache hosts file look like this localhost

Apache virtual host configuration - httpd.conf

<VirtualHost *:80>
  # Index file and Document Root (where the public files are located)
  DirectoryIndex index.php
  DocumentRoot /home/sdgsgsdfs/domains/
  ErrorLog /home/sdgsgsdfs/domains/
  CustomLog /home/sdgsgsdfs/domains/ common

I think i am missing a simple configuration step, if any one can point me to right direction to resolve this problem will be great



It looks okay to me EXCEPT that the .com may cause a problem. I don’t use TLD’s in my localhost VirtualHost server aliases/names.



Hi dklynn, Thanks a lot for the prompt reply, sorry i didnt reply sooner. I been playing with the changes, still no luck

I am little confused about the thing you said about not to use .com in localhost and server aliases

I did remove .com and try, then it failed to load the website.


I’m surprised at rereading your post that I would have answered that way with mine! I think that the problem is that there is a setting within Apache’s httpd.conf that will enable/disable the wget. I’m not sure what that is at the moment (clearing the sleep from my eyes) but will look for that later.