Forum Moderators: phranque
The problem is that I had to reinstall completely my OS from scratch because of a virus attack. My web server was working fine before that. I have reinstalled Apache and now I cannot access in any way websites on my Apache server from outside my LAN. With localhost (localhost, 127.0.0.1, 192.168.1.2(my local IP address)) everything is fine. Even with other computers in the LAN i.e. I can see the apache default page.
My configuration :
OS : Windows XP Pro SP2
Router : Linksys WRT54G 8.00.6 (Firmware updated to last version).
Local Static IP : 192.168.1.2
Apache : 2.2.11 (Win32)
---
Firewall have been turned off.
Anti-virus have been turned off.
All unnecessary services have been stopped. (And all not needed applications).
All other servers have been shutdowned.
Port 80 is open.
ISP does not block port 80 (I've checked with them).
Port 80 forwarded in my router.
Domain name : DNS are configured correctly.
Apache is listening on all interfaces (Listen 80).
---
I can ping my WAN IP address (The one that my ISP gave me 7x.#*$!.#*$!.26). I can ping my domain name with no problem, even on port 80. All my other servers works perfectly (FTP, MySQL, etc...). In fact, I can see everyhthing from outside, except when I'm in a web browser. I'v tried IE, Firefox and Chrome to be sure the problem wasn't only the browser. No luck again, always the "Cannot find page", etc.
I've tried my old httpd.conf, no success. Reinstall apache completely and i'm now using the default configuration (except for the "ServerName"... I've tried localhost, 192.168.1.2, 127.0.0.1, www.#*$!#*$!x.com, #*$!#*$!x.com, www.#*$!#*$!x.com:80, #*$!#*$!x.com:80. Always the same result.
In the error.log file, I have the error "winnt_accept: Asynchronous AcceptEx failed" so I've tried this:
Disabling EnableMMAP and EnableSendfile as suggested on another web site, no success, same result.
Also tried Win32DisableAcceptEx, no success, same result.
Here is the error.log file:
[Fri May 22 02:07:58 2009] [notice] Apache/2.2.11 (Win32) configured -- resuming normal operations
[Fri May 22 02:07:58 2009] [notice] Server built: Dec 10 2008 00:10:06
[Fri May 22 02:07:58 2009] [notice] Parent: Created child process 2380
[Fri May 22 02:07:58 2009] [notice] Child 2380: Child process is running
[Fri May 22 02:07:58 2009] [notice] Child 2380: Acquired the start mutex.
[Fri May 22 02:07:58 2009] [notice] Child 2380: Starting 64 worker threads.
[Fri May 22 02:07:58 2009] [notice] Child 2380: Starting thread to listen on port 80.
[Fri May 22 02:08:50 2009] [warn] (OS 121)The semaphore timeout period has expired. : winnt_accept: Asynchronous AcceptEx failed.
[Fri May 22 02:09:11 2009] [warn] (OS 121)The semaphore timeout period has expired. : winnt_accept: Asynchronous AcceptEx failed. Last attempt I have done, I've connected my server directly into my modem to see if the problem could be the router. Now I can access websites on the server from anywhere, even from outside the LAN. I have connected back everything as it was with the router. I've reseted the router, can't access anything. I've use the factory default, nothing. Enabled DMZ on my local IP, nothing. Upgraded firmware, no result.
So, here I am. I'm a bit lost. I don't know what to try next. I would need some help.
Thanks
Sébastien
Yep, that's what I was trying. I have change completely my configuration, reseted every things... no result... I bought a new one, configured it exactly the same way and TADA ! It works... I hate when hardware fails :(
But I wonder, every other ports were forwarded correctly... it's weird that the problem occurred only for the port 80. I guess I'll never know.
Anyway ! Thanks for your time.
Sébastien
If the two routers are the same make & model, you might even consider using the new router's backup file to re-configure the old router and see if that fixes it (make sure they're both upgraded to the same firmware revision first, though).
Jim