Where is BindAddress in httpd.conf?

Support for webhosts that use CentOS
MajorNewbie
Posts: 127
Joined: 2008/04/17 00:04:43

Where is BindAddress in httpd.conf?

Post by MajorNewbie » 2008/04/26 17:45:53

Hi again.

I have a couple of NIC cards on my web-server, one of which connects to the ISP using a fixed IP address. I want Apache to listen to this address only by using a BindAddress.

I cannot seem to find BindAddress in httpd.conf.

While I am at it, mii-tools seem not to be installed in a standard CentOS5.1? Must be yummed?

markske
Posts: 77
Joined: 2007/03/19 10:12:59
Location: Belgium/brussels

Re: Where is BindAddress in httpd.conf?

Post by markske » 2008/04/27 17:06:40

check in your config for this "#Listen 12.34.56.78:80"

markske
Posts: 77
Joined: 2007/03/19 10:12:59
Location: Belgium/brussels

Re: Where is BindAddress in httpd.conf?

Post by markske » 2008/04/27 17:10:47

ps, mii-tool is in the package net-tools
(you must be root because its in a /sbin path)

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

Re: Where is BindAddress in httpd.conf?

Post by MajorNewbie » 2008/04/27 19:42:33

No /sbin/nettools/mii-tools anywhere :(

User avatar
vonskippy
Posts: 839
Joined: 2006/12/30 03:00:04
Location: Western Slope Colorado

Re: Where is BindAddress in httpd.conf?

Post by vonskippy » 2008/04/27 20:55:39

[quote]ps, mii-tool is in the package net-tools[/quote]

So check and see if net-tools is already installed....

#yum info net-tools
or
#rpm -q net-tools

If not...

#yum install net-tools

Then just run mii-tool from the prompt (#mii-tool --help)

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

Re: Where is BindAddress in httpd.conf?

Post by MajorNewbie » 2008/04/28 01:51:04

Thanks for the info.

Net-tools (net-tools-1.60-73) version 1.60 release 73 is actually installed, I tried "# yum updated net-tools' and yum reported not Packages marked for update or obsoletion.

Running mii-tool throws following errors:

SIOCGMIIPHY on 'eth0' failed: Operation not supported.
SIOCGMIIPHY on 'eth1' failed: OPeration not supported.
No MII interfaces found.

User avatar
vonskippy
Posts: 839
Joined: 2006/12/30 03:00:04
Location: Western Slope Colorado

Re: Where is BindAddress in httpd.conf?

Post by vonskippy » 2008/04/28 02:49:57

http://net-tools.berlios.de/man/mii-tool.8.html

You can always try 'ethtool' (you might have to install it first....#yum install ethtool)

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

Re: Where is BindAddress in httpd.conf?

Post by MajorNewbie » 2008/04/28 16:21:20

ethtool works well.

Thanks, von, I feel much better now that I can look at those LANs on the new mobos. I often wonder whether it is sales puffery or they can really do 10/100/1000BaseT. Now I can order a Linksys switch which will match the 1000Mbps, invest a few dollars more upfront and avoid the bottleneck downstream.

Odd that none of them have mii-interfaces.

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

Re: Where is BindAddress in httpd.conf?

Post by MajorNewbie » 2008/04/30 17:41:13

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.

Addendum:
I can ping localhost
I cannot telnet localhost, tells me connection refused, and I am doing this on the web-app server itself.
I can ping my fixed IP address and my domain-name www.aaa.com

I just cannot get my homepage up on the internet: server not found!

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?

Post Reply

Return to “CentOS 5 - Webhosting Support”