LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2005, 11:34 AM   #1
rlafountain
LQ Newbie
 
Registered: Jun 2005
Posts: 2

Rep: Reputation: 0
Cannot Connect to Apache 2.0 on LAN


Hello. I am a very very new Linux user. I am running RedHat 9 on a box at my workplace. We are on a domain. The hostname of my computer is Athens and it is registered on that domain in the network settings function of Linux. I have installed and started apache no problem, and I can ping my computer from another computer on the domain (across the room). I can also test the loopback functions of the webserver by going into Firefox and typing 'localhost'. I get the apache home page to know that the install was okay. However when I go into a web browser on another computer and type '192.168.2.116' nothing happens and it cannot connect to the web server.

Any help would be appreciated.

Thanks,
Ryan
 
Old 07-01-2005, 11:43 AM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,152

Rep: Reputation: 60
Just a thought...
Could it be that your apache is listening on just the localhost and not on your local network.

Tux,
 
Old 07-01-2005, 11:53 AM   #3
rlafountain
LQ Newbie
 
Registered: Jun 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Potentially. As I said I am a very new person to this. How do I change it? I'm assuming that it has something to do with the Listen directive in the httpd.conf file...?

The only thing I have defines under listen is the defualt:

Listen 80


Do I need to add an IP below that?

Thanks,
Ryan
 
Old 07-01-2005, 03:23 PM   #4
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,152

Rep: Reputation: 60
I'm not at my machine but if you read through the second half of httpd.conf file...you would come across network directives and its pretty self explanatory (the file's well commented) so you can read it and get a feel of it. I might be able to help you more later today.
 
Old 07-01-2005, 05:01 PM   #5
ginetta
LQ Newbie
 
Registered: Nov 2004
Location: Canada
Posts: 28

Rep: Reputation: 15
Re: Cannot Connect to Apache 2.0 on LAN

Quote:
Originally posted by rlafountain
However when I go into a web browser on another computer and type '192.168.2.116' nothing happens and it cannot connect to the web server.
Apache 2.x splits the conf files. edit listen.conf and try modifying the listen directive to
Listen 192.168.2.116:80

If you are using a single httpd.conf file then make that change accordingly there instead.


G.
 
Old 07-22-2005, 07:30 AM   #6
jleon71
LQ Newbie
 
Registered: Jul 2005
Posts: 1

Rep: Reputation: 0
My seuggestion will be check your DNS server to ensure that you can get answer by name and by IPaddress. also check that the port 80 is is listen in the network.
 
Old 07-22-2005, 04:39 PM   #7
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
Have you added the "another computer " to /etc/hosts ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No Internet but LAN and VPN connect LAN work fine??? xavior SUSE / openSUSE 7 11-09-2005 01:14 PM
How to connect to Internet using LAN bongski55 Linux - Networking 2 10-13-2005 08:29 AM
how to connect to LAN ninelives1980 Linux - Networking 2 08-25-2005 04:24 AM
Can not connect to LAN dca Linux - Networking 1 04-21-2003 03:57 PM
RH cannot connect to LAN esael Linux - Networking 2 09-26-2002 07:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration