last day (14 days later) » 

3:51 AM
2
Q: I cant access my website that I hosted in home "Apache24" from internet

Narzan Q.I have Apache2.4 server in home running MySQL and PHPmyadmin on windows 7 home edition. Everything work great from inside the network but if I try to access the website from outside "internet" it take so long to loud and at the end "This page isn't working HTTP ERROR 504" What I have done for n...

 
just to clarify, when you are testing the external connection, you are actually outside your LAN right? Most consumer-grade routers don't allow Hairpin-NAT, which would allow you to access the WAN side of the router. without it, you cannot access the WAN side from the LAN.
 
I checked from outside, 4G on my mobile, I even put the server on DMZ to be outside my network from my router, The router that I use is Huawei HG255s, Just a little note, I connect my server over wifi! is that okay?
 
the 4g is fine, that means you are actually hitting it from the outside, not coming through the NAT one direction to immediately pass back through it the other way. for LAN testing wifi is fine, but for WAN side testing you do need to actually be on the WAN, unless you can configure your router to allow hairpining. Either way, it sounds like your issue isn't directly related to NAT.
 
Hmm there is an option in my router for something called "dynamic router" and there is options like passive-active for WAN_Internet! is that what you mean? and the option for now is "passive-off" note:my server can access the internet without any problem
The External port 8080 and the internal 80, because my Apache and my firewall use it, I put a screen shot at the end of my question, I'm not using any hard coding DNS, I just give it a try maybe it will help.
 
3:51 AM
the 504 Error is a timeout problem, so first try to edit your httpd.conf with at least 4 times your current value and see if it works then, then lower it gradually until you find a value that is not to big but not small enough to timeout ##Timeout 120 Timeout 600 if it works after this, then it is maybe a slow wifi connection, or you need to troubleshoot your speed not your ip/nat
 
@PimpJuiceIT I made another Update, I just put another screen shot for the port testing, it works, I know the router not make any sense, but from testing I found my IP from 4G connection inside the server access log file, so packet passed the router
Yeah I put the port too after the IP, sometimes it only show the text inside the website and some images but not organized, and sometimes timeout
 
sry, did not saw that is was already suggested. Just saw the screenshot and know it from my router that start 80 and end 0 does not work there.
 
@arana I put my httpd code in my question check the update
@PimpJuiceIT from inside "lan" i use this IP "192.168.1.30:80" and it works perfectly
@PimpJuiceIT I just flipped the ports, the router can't accept that "error" there is IPTV in the network and I made the ports for the device in the same way "of course different ports" and it's work, and nope doesn't redirect me to use SSL or HTTPS
Sometimes it show some text and images not organized and other times "This page isn't working HTTP ERROR 504"
This file contain all the rules to access Apache, from inside or outside, for that I just include it in the question.
 
proxy_html_module is disabled: #LoadModule proxy_html_module modules/mod_proxy_html.so
what does your apache error.log says?
 
@MA-Maddin I just enable it and restart my server, the same problem, I just made an update, you can find the error log file in the question
 
3:51 AM
move all files from C:/Apache24/htdocs/ temporarly into another folder. and place an index.html file only instead (with some content). Then try access again.
 
@MA-Maddin I just put simple index.php contain hello world and it works from outside!!! hmm so it's not from my router..
 
yes, seems working (your domain is listed in error log ;) ). So you have to fix all those bugs of error log. especially all those php....dll bugs
 

last day (14 days later) »