Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ok Iv had apache running for about 4 or 5 months now and its been working fine, its behind a linksys router and all the ports for it are forwarded, as its been working. Ok my problem is this, i can type my host name in and get to the site, which is using dyndns.org to just forward that host to my ip, and the site connects, i can use ip and it works and ssh just to test the forwarding cause they are both being sent to the same box. But when anyone outside the lan trys to connect its a 404 error, hostname/ ip both dont work, and thinking maybe something is wrong woth apache, i had a friend try to connect to webmin which, to my understanding, does not use apache. And that was no luck either. I had him download putty and try to connect through ssh, and he can get to the login screen which if it did not connect you wouldnt get that far.
Iv checked the servers ip iv checked the router and made sure its forwarding was correct, i checked dyndns to make sure the ip is updated correctly, restarted both the server and the router just in case. nothing there. Im stumped on what is going on, its like apache is not working but like i said i can get to it from the lan.
Im using fedora core 1 for my server
"404" means, requested page could not found on the server.
so your your apache must work. otherwise client cannot reach any page.
i think there is something wrong with httpd.conf.
even tho it is a 404 error page, it cant really be apache not working correctly because im still able to connect to the site via the lan, tho i did remember that there was a power outage the other night so i wonder if that had anything to do with it :S
check the apache error logs:
generally in /var/log/httpd/
or
/usr/local/apache2/logs/
if u have more than 1 network interface, maybe apache listens to only local net interface. make sure that apache listens to all.
netstat -an |grep tcp |grep 80
check firewall if it allows tcp 80 come from internet, if u didnt save iptables configuration b4 resetting cause of power outage.
i looked at the logs like you said but im not real sure what im looking for. i see a lot of connections made by myself from the lan but nothing from outside where the problem is. I only have one nic but i ran that command anyways just to be sure and it didnt help, i still do not get a page to display. I never had the firewall enabled on my linux box, the router was enough for me and i checked to make sure it was forwarding everything correctly, also iv never done iptables so i would hope those are whatever there were when it all worked.
i have read your post again. i have missed that other services like webmin dont work either. sorry about my bad english. i cant get the meaning of
" I had him download putty and try to connect through ssh, and he can get to the login screen which if it did not connect you wouldnt get that far."
does ssh work from internet? or not? if not, check network configuration.
try to ping yahoo.com.
ic, u have checked access_log but havent u checked error_log ? there can be something about your trouble in this file.
firewall, port forwarding, NAT and etc, are done by iptables. if u dont have any firewall, u dont need to check iptables.
Hrm i did alot of messing around with what you said, i went back and took a look at the network setup through webmin. Under interfaces active now everything was setup correctly, tho i didnt take any notice to the area below that where it said Interfaces activated at boot, the ip for that was wrong. Though i cant figure out why that would matter when i was able to connect to it using the ip i had in just the interfaces active now area.
I dunno its confusing sometimes but at least i got it all working, and thanks for your help
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.