Where is BindAddress in httpd.conf?

Support for webhosts that use CentOS
jowa
Posts: 75
Joined: 2005/07/10 14:42:39

Re: Where is BindAddress in httpd.conf?

Post by jowa » 2008/04/30 19:13:52

[quote]
MajorNewbie wrote:
I like to test my apache setup: typing "http://localhost/" in the URL should bring up my index.htm homepage.

But it doesn't, it gives me an "unable to connect" error.[/quote]Two things to check:

Is the Apache [i]httpd[/i] service running? Do you have the IP address corresponding to the name "localhost" in a [i]Listen[/i] directive in the config?

MajorNewbie
Posts: 127
Joined: 2008/04/17 00:04:43

Re: Where is BindAddress in httpd.conf?

Post by MajorNewbie » 2008/04/30 21:12:46

Actually there's where my present problem began.

I had the listen directive like this:


Documentroot "/var/www/html"

...lines elided...

Listen 192.168.0.1:80
Listen 127.0.0.1:80

Now that's suppose to bring up my home page in /var/www/html, but doesn't, it is bring up the Apache homepage and I am doing bone-breaking gymnastics with httpd.conf

I can bring up my home page index.html using http://localhost/

My problem now is I bring it on up the internet, I type www.abcdefg.com and it says "server not found", likewise when I put in my IP address in the URL.

Did you read AlanBartlett's reply, I cracked up :D

MajorNewbie
Posts: 127
Joined: 2008/04/17 00:04:43

Re: Where is BindAddress in httpd.conf?

Post by MajorNewbie » 2008/04/30 21:43:16

It seems to be internal to my network.

I typed in my IP-address and it should bring up my index.htm, but it doesn't, it tells me "server not found".

I thought it could be the NAT-ting, but /etc/hosts looks find, following should work for NAT-ting

70.80.90.100 www..com

Post Reply

Return to “CentOS 5 - Webhosting Support”