Web Server


 
Thread Tools Search this Thread
Operating Systems Linux Web Server
# 1  
Old 10-13-2007
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.
# 2  
Old 10-13-2007
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).
# 3  
Old 10-13-2007
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Web Server - uploading Frontpage web - will there be problems??

hiya All, New to this Web site stuff. Will be installing Fedora's latest O/S (including Apache) - onto a spare PC Then... Gulp... setting up a Web server. Designing a Web site using WINDOWS FRONT PAGE 2002: * Simply easiest/quickiest way to knock up a basic site. * There won't be... (6 Replies)
Discussion started by: marty 600
6 Replies

2. UNIX for Dummies Questions & Answers

Web browser and web server for Unix

Hi there all I am looking for both a web browser as well as a web server (Ie. Netscape Fasttrack) that will run on HPUX 10. If you know where I can get these free via FTP, please contact me as soon as possible!! Thanks, Mark (1 Reply)
Discussion started by: mleathers
1 Replies

3. UNIX for Dummies Questions & Answers

Dynamic web pages for Unix Web Server

Hi, my company is considering a new development of our web site, which used to run on Apachi over Solaris. The company who is going to do this for us knows only about developing it in ASP. I guess this means we'll have to have another ISS server on NT for these dynamic pages :( What are... (5 Replies)
Discussion started by: me2unix
5 Replies
Login or Register to Ask a Question