Web Servers General Talk - Trouble accessing Linux machine running Apache

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers General Talk > July 2004 > Trouble accessing Linux machine running Apache





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Trouble accessing Linux machine running Apache
Harry Devine

2004-07-29, 6:07 pm

I just installed Apache 2.0.50 and have the httpd service running. If
I use the browser on the Linux machine (RH9.0) and access local host
(http://localhost) or the machine's IP, I get the page to show up.
However, if I try and access the web server from another PC, I get the
"Page cannot be displayed...Cannot find server or DNS entry".

This seems like a fundamental thing to do, and I can't see why I can
see the web server pages locally, but not over the network. Any help
would be appreciated.

Thanks,
Harry
Georg Stahl

2004-07-29, 6:07 pm

Harry Devine wrote:

> I just installed Apache 2.0.50 and have the httpd service running. If
> I use the browser on the Linux machine (RH9.0) and access local host
> (http://localhost) or the machine's IP, I get the page to show up.
> However, if I try and access the web server from another PC, I get the
> "Page cannot be displayed...Cannot find server or DNS entry".
>
> This seems like a fundamental thing to do, and I can't see why I can
> see the web server pages locally, but not over the network. Any help
> would be appreciated.


If you are using a proxy? If yes you should bypass the proxy for your
server.

If using Mozilla go to: "Edit | Preferences | Advanced | Proxies" and add
your server to the no-proxy-list.

If using IE (I only know for the German version): "Extras | Internet
Optionen | Verbindungen | Erweitert".

Georg
Tim

2004-07-30, 2:49 am

On 29 Jul 2004 08:50:44 -0700,
hdevine@ourapplecart.com (Harry Devine) posted:

> I just installed Apache 2.0.50 and have the httpd service running. If
> I use the browser on the Linux machine (RH9.0) and access local host
> (http://localhost) or the machine's IP, I get the page to show up.
> However, if I try and access the web server from another PC, I get the
> "Page cannot be displayed...Cannot find server or DNS entry".


Well, if you're trying to access that machine from another one, using
http://127.0.0.1/ or http://localhost/ that's not going to work (those
addresses always refer back to the machine you're currently on).

But if you're using the network address for the PC (e.g. like 192.168.0.1
or internet addresses), then you shouldn't have any problems. Of course,
you have to set up the server to listen for connections on those addresses
(the default installation usually does), and you have to allow it through
your firewall (if you have one).

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
Harry Devine

2004-07-30, 7:53 am

Tim <tim@mail.localhost.invalid> wrote in message news:<11j3y8v9fjgmx.1uyy2qli12vzj$.dlg@40tude.net>...
> On 29 Jul 2004 08:50:44 -0700,
> hdevine@ourapplecart.com (Harry Devine) posted:
>
>
> Well, if you're trying to access that machine from another one, using
> http://127.0.0.1/ or http://localhost/ that's not going to work (those
> addresses always refer back to the machine you're currently on).
>
> But if you're using the network address for the PC (e.g. like 192.168.0.1
> or internet addresses), then you shouldn't have any problems. Of course,
> you have to set up the server to listen for connections on those addresses
> (the default installation usually does), and you have to allow it through
> your firewall (if you have one).



The httpd.conf file has port 80 configured by default. I can access
the machine locally using http://127.0.0.1, http://localhost, and
http://<machine ip>, but accessing it from another machine on the
network using the IP doesn't work. I don't have any firewall in
between. In fact, the Linux box is plugged into a hub in my office
and is right next to my main Win2K machine (the one I am using IE on
to connect to the Linux web server).

Thanks for any help.
Harry
Tim

2004-07-31, 5:53 pm

On 30 Jul 2004 03:31:50 -0700,
hdevine@ourapplecart.com (Harry Devine) posted:

> The httpd.conf file has port 80 configured by default. I can access
> the machine locally using http://127.0.0.1, http://localhost, and
> http://<machine ip>, but accessing it from another machine on the
> network using the IP doesn't work. I don't have any firewall in
> between. In fact, the Linux box is plugged into a hub in my office
> and is right next to my main Win2K machine (the one I am using IE on
> to connect to the Linux web server).


Are you sure you don't have any firewalling? You mentioned Red Hat 9
Linux, before, and by default it blocks access to port 80. As the root
user you can type "iptables -L -n" into the CLI and look for any rules
mentioning port 80 as input or output rules.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com