The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
NFS write failed for server.....error 11 (RPC: Server can't decode arguments) sap4ever SUN Solaris 3 05-08-2008 05:20 AM
Script runs fine on UNIX Server...Not through MSK Tool kit on Windows Server madhunk UNIX for Dummies Questions & Answers 5 01-31-2008 10:30 AM
Axigen, A Fresh Approach for Mail Server Admins - Server Watch iBot UNIX and Linux RSS News 0 07-12-2007 02:20 PM
Transfer file from local unix server to remote server indira Shell Programming and Scripting 2 05-03-2007 03:35 AM
Dowloading a File from FTP Server to a local Server where User Id's are different ranjith_taurean Shell Programming and Scripting 1 02-22-2007 04:47 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-13-2007
Registered User
 

Join Date: May 2005
Posts: 192
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.
Reply With Quote
Forum Sponsor
  #2  
Old 10-13-2007
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,328
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).
Reply With Quote
  #3  
Old 10-13-2007
_Spare_Ribs_'s Avatar
Registered User
 

Join Date: Dec 2006
Location: /dev/null
Posts: 72
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:
Code:
# 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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:56 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0