Apache runs but can't access from external machine ??? os-WINXP

This is a discussion on Apache runs but can't access from external machine ??? os-WINXP within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi all, Running apache 2.0 on winxp pro with a DNS service from www.dns4me.com, and its running ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-10-2003
Zoomy
 
Posts: n/a
Default Apache runs but can't access from external machine ??? os-WINXP

Hi all,

Running apache 2.0 on winxp pro with a DNS service from
www.dns4me.com, and its running without any errors!
On the pc where apache is installed and on other pc in my lan it works
fine, but if i try to acces from an external machine it does not work.

If i ping the domain on the external machine i've got a good result,
but in the webbrowser the index.htm page does not show up!

Have been testing with firewall (blackice) turned off, but no
difference

I'm quit new to this matter, but very interested and like to solve
this problem!!!

Can it have anything to do with access-rights on winxp from external
incoming requests ??
The apache htdocs dir is in shared mode, but i do not know if this is
neccesary?

If you need more info to help me let me know

Thanx.........
Zoomy the Netherlands
  #2 (permalink)  
Old 07-10-2003
davide@yahoo.com
 
Posts: n/a
Default Re: Apache runs but can't access from external machine ??? os-WINXP

Zoomy <zoomy@freeler.nl> wrote:
> If i ping the domain on the external machine i've got a good result,
> but in the webbrowser the index.htm page does not show up!


Is your machine reachable from outside? Do you have a router or
a gateway that route port 80 on your machine? Is your machine
directly connected to the internet trought a router?

Davide

  #3 (permalink)  
Old 07-10-2003
Zoomy
 
Posts: n/a
Default Re: Apache runs but can't access from external machine ??? os-WINXP

Hi Davide,

How can I test that its reacheble from outside?
And in what way do you mean reachable?
It does not show up the index.htm so I think it is not?
Can I test that with a c:\.... command like the ping command that I
did from the external machine.
Because the ping command finds de domain and the packets are all OK.

My machine is connected directly to the internet via a cable-modem
that is controlled by a dial-up, the modem is connected on de com2
serial port., and from there it is connected to the cable-network.

For as far I know I got no router and no gateway, is this a piece of
software that is needed to route incoming trafic to port 80??
Or are you talking about a hardware router?

Thanx.......

Zoomy


On 10 Jul 2003 18:10:40 GMT, davide@yahoo.com wrote:

>Zoomy <zoomy@freeler.nl> wrote:
>> If i ping the domain on the external machine i've got a good result,
>> but in the webbrowser the index.htm page does not show up!

>
>Is your machine reachable from outside? Do you have a router or
>a gateway that route port 80 on your machine? Is your machine
>directly connected to the internet trought a router?
>
>Davide


  #4 (permalink)  
Old 07-10-2003
davide@yahoo.com
 
Posts: n/a
Default Re: Apache runs but can't access from external machine ??? os-WINXP

Zoomy <zoomy@freeler.nl> wrote:
> How can I test that its reacheble from outside?


Read your own subject for the message... if you don't know how to test
how did you decided that "can't access from external machine" ?

> Because the ping command finds de domain and the packets are all OK.


The ping command just tells you that the network card is there and it's
working, it doesn't tell you if the machine that is attached to the
network card is dead or alive.

> For as far I know I got no router and no gateway


You have a gateway that is at your ISP and a router. If your machine is
directly connected to the ISP check if you are running a firewall and
if you are blocking port 80 on the firewall.

I strongly suggest you to start reading some basic documentation about
how to setup a network because it looks like you miss some of the basic
information.

Davide
  #5 (permalink)  
Old 07-20-2003
Matthew Turland
 
Posts: n/a
Default Re: Apache runs but can't access from external machine ??? os-WINXP

I'm having a similar problem as Zoomy, and it only seemed to arise after I
installed the latest version of Apache. The problem is that I have Apache
set up on my machine, and that while people on the LAN can access it, people
outside the LAN can't. All that comes up is a 'Cannot find server' message,
or something to that effect.

Here are the conditions:

Windows XP SP1
Apache 2.0.47
LinkSys router, Gateway Mode, forwarding port 80 to my LAN IP
Cable modem, hooked up to the router

Here are the tests I've conducted and their results:

1) http://samspade.org/t/safe - Error: Couldn't connect to server.
2) http://keir.net/ip2.html - Finds the correct LAN and WAN IP addresses
3) http://www.whatsmyipaddress.com/ - Finds the correct WAN IP address
4) http://www.dnsstuff.com/ - Finds the correct WAN IP address

I'm fairly sure the problem isn't with DNS, as I've had people outside the
LAN be able to FTP in without any problems using the subdomain.

The only condition that's changed recently was that I uninstalled Apache
2.0.46 and installed Apache 2.0.47. No router settings have been changed,
nothing like that.

The No-IP client seems to be running without any issues, as it checks its
DNS records and reads back my current WAN IP, telling me that it doesn't
need to do any DNS updates.

I'm pretty sure I have the Windows XP firewall disabled, but I'm not
entirely sure. Could anyone reiterate as to how this is done?

So, after all that, I'm fairly sure the problem is with Apache. I checked
the error logs and managed to find these suspicious-looking lines:

[warn] pid file C:/Apache2/logs/httpd.pid overwritten -- Unclean shutdown of
previous Apache run?
[warn] (OS 995)The I/O operation has been aborted because of either a thread
exit or an application request. : winnt_accept: Asynchronous AcceptEx
failed.

Below are a few configuration file settings that may be important to
analysis of the situation. Any suggestions on what's going on or how to fix
it? Thanks in advance for any feedback.

Listen 80
ServerName bluelyte.sytes.net:80
UseCanonicalName Off
HostnameLookups Off
NameVirtualHost *

<VirtualHost *>
ServerAdmin mgturland@yahoo.com
DocumentRoot C:/Apache2/htdocs
ServerName bluelyte.sytes.net
ErrorLog logs/bluelyte.sytes.net-error_log
CustomLog logs/bluelyte.sytes.net-access_log common
</VirtualHost>

<VirtualHost *>
ServerAdmin mgturland@yahoo.com
DocumentRoot C:/Apache2/htdocs/gara
ServerName gara.sytes.net
ErrorLog logs/gara.sytes.net-error_log
CustomLog logs/gara.sytes.net-access_log common
</VirtualHost>


  #6 (permalink)  
Old 07-20-2003
The Other Guy
 
Posts: n/a
Default Re: Apache runs but can't access from external machine ??? os-WINXP

On Sat, 19 Jul 2003 18:37:39 -0500, The Other Guy responded to a post
from "Matthew Turland" <mgturland@yahoo.com> who wrote in
alt.apache.configuration:

>I'm having a similar problem as Zoomy, and it only seemed to arise after I
>installed the latest version of Apache. The problem is that I have Apache
>set up on my machine, and that while people on the LAN can access it, people
>outside the LAN can't. All that comes up is a 'Cannot find server' message,
>or something to that effect.
>
>Here are the conditions:
>
>Windows XP SP1
>Apache 2.0.47
>LinkSys router, Gateway Mode, forwarding port 80 to my LAN IP
>Cable modem, hooked up to the router
>
>Here are the tests I've conducted and their results:
>
>1) http://samspade.org/t/safe - Error: Couldn't connect to server.
>2) http://keir.net/ip2.html - Finds the correct LAN and WAN IP addresses
>3) http://www.whatsmyipaddress.com/ - Finds the correct WAN IP address
>4) http://www.dnsstuff.com/ - Finds the correct WAN IP address
>
>I'm fairly sure the problem isn't with DNS, as I've had people outside the
>LAN be able to FTP in without any problems using the subdomain.
>
>The only condition that's changed recently was that I uninstalled Apache
>2.0.46 and installed Apache 2.0.47. No router settings have been changed,
>nothing like that.


Have you got a firewall that also needs to be reconfigured to allow
the new program?

See http://httpd.apache.org/docs/misc/FAQ.html#firewall
Why can I access my website from the server or from my local network,
but I can't access it from elsewhere on the Internet?

>The No-IP client seems to be running without any issues, as it checks its
>DNS records and reads back my current WAN IP, telling me that it doesn't
>need to do any DNS updates.
>
>I'm pretty sure I have the Windows XP firewall disabled, but I'm not
>entirely sure. Could anyone reiterate as to how this is done?


http://www.microsoft.com/windowsxp/p...ning/firewall/

- Go into Control Panel/Network Connections.
- Right-click on the Local Area Connection and select ‘Properties’.If
you have Broadband Connection then right-click on it and go into its
‘Properties’ as well.Perform the following steps for both Local Area
and Broadband Connections.
- On the Connections Properties dialog, select the ‘Advanced’ tab.
- Uncheck ICF

>So, after all that, I'm fairly sure the problem is with Apache. I checked
>the error logs and managed to find these suspicious-looking lines:
>
>[warn] pid file C:/Apache2/logs/httpd.pid overwritten -- Unclean shutdown of
>previous Apache run?
>[warn] (OS 995)The I/O operation has been aborted because of either a thread
>exit or an application request. : winnt_accept: Asynchronous AcceptEx
>failed.



These are just warnings, not errors that prevent startup (or you
wouldn't reach it by LAN).

>Below are a few configuration file settings that may be important to
>analysis of the situation. Any suggestions on what's going on or how to fix
>it? Thanks in advance for any feedback.
>
>Listen 80
>ServerName bluelyte.sytes.net:80
>UseCanonicalName Off
>HostnameLookups Off
>NameVirtualHost *
>
><VirtualHost *>
> ServerAdmin mgturland@yahoo.com
> DocumentRoot C:/Apache2/htdocs
> ServerName bluelyte.sytes.net
> ErrorLog logs/bluelyte.sytes.net-error_log
> CustomLog logs/bluelyte.sytes.net-access_log common
></VirtualHost>
>
><VirtualHost *>
> ServerAdmin mgturland@yahoo.com
> DocumentRoot C:/Apache2/htdocs/gara
> ServerName gara.sytes.net
> ErrorLog logs/gara.sytes.net-error_log
> CustomLog logs/gara.sytes.net-access_log common
></VirtualHost>
>


Above looks good on quick inspection.

Best guess is firewall (often overlooked when you upgrade or
re-install).

HTH
TOG

--
../configure --prefix=~/zyterion
Not this guy or that guy, The Other Guy.

This spot may contain a satirical comment or comedic source,
and is meant to be funny. If you are easily offended, gullible
or don't have a sense of humour we suggest you read elsewhere.
  #7 (permalink)  
Old 07-20-2003
Matthew Turland
 
Posts: n/a
Default Re: Apache runs but can't access from external machine ??? os-WINXP

<< Have you got a firewall that also needs to be reconfigured to allow the
new program? >>

I use the latest version of ZoneAlarm Pro, and I've tried having outsiders
hit the server with and without it running, and neither
has worked. The server ran with it running in the recent past, though, so I
doubt that's it.

<< See http://httpd.apache.org/docs/misc/FAQ.html#firewall
Why can I access my website from the server or from my local network,
but I can't access it from elsewhere on the Internet? >>

Did what it suggested, and it worked. So I'm guessing that means that
SOMETHING is blocking port 80. But what could it be?

<< http://www.microsoft.com/windowsxp/p...ning/firewall/

- Go into Control Panel/Network Connections.
- Right-click on the Local Area Connection and select 'Properties'.If
you have Broadband Connection then right-click on it and go into its
'Properties' as well.Perform the following steps for both Local Area
and Broadband Connections.
- On the Connections Properties dialog, select the 'Advanced' tab.
- Uncheck ICF >>

I have Internet Connection, which doesn't have an 'Advanced' tab available.
When I hit the Settings button on that, though,
everything's checked off. I checked the 'Advanced' tab under the Local
Connection, and it's unchecked on both of the computers on
the LAN. The machines are both hooked up to a LinkSys switch, which is
hooked into a LinkSys router, as is the cable modem.

<< Best guess is firewall (often overlooked when you upgrade or re-install).
>>


Still not sure about this. As far as I can tell, the XP firewall is
disabled, and I took another stab at having any outsider hit the
server without ZoneAlarm running, but with the same result. Any other ideas
on what could be blocking it? My ISP apparently hasn't
blocked it before now, as I've been able to run the server listening on port
80 without any trouble.

Many thanks for the help.

Regards,

MGT


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:32 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0