LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot Connect to Apache 2.0 on LAN (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-connect-to-apache-2-0-on-lan-339100/)

rlafountain 07-01-2005 11:34 AM

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

tuxrules 07-01-2005 11:43 AM

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

Tux,

rlafountain 07-01-2005 11:53 AM

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

tuxrules 07-01-2005 03:23 PM

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.

ginetta 07-01-2005 05:01 PM

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.

jleon71 07-22-2005 07:30 AM

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.

comprookie2000 07-22-2005 04:39 PM

Have you added the "another computer " to /etc/hosts ?


All times are GMT -5. The time now is 04:08 AM.