Web Server

Hi,
my Linux server has two IP adresses. I want to make an apache web server on it.
1- in which apache configuration file I should write IP adresse for broad casting ?
2-how to be sur and verify on which adresse is it broad casting ?

Many thanks before.

Which of the two IP addresses is used by users accessing your system? Suggest going with that IP address for your webserver. If you have DNS, run a nslookup on your hostname and use the IP that it returns. Also, to make sure that the webserver is listening on the correct IP, just open up a browser and type in your hostname. If the webserver is correctly setup, you should get some sort of default page (or your own page, depending on the configuration).

In response to point 1 that is configured in the httpd.conf file. On a default install of Apache 2.X this file will be located at:
/usr/local/apache2/conf/httpd.conf

There is a section in the file which will be as follows:

# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80

Listen 80

It's faitly self-explanitory what you do here. Make sure you restart apache after modifying this file.

Then to test it you can do as blowtorch mentioned or if you haven't yet assigned a DNS name then just put the IP Address in. Do this for all IP Addresses on the server to make sure that apache has taken the changes and is only running on the IP Address you specified.