LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-02-2004, 01:32 AM   #1
Drissical
LQ Newbie
 
Registered: Sep 2004
Posts: 6

Rep: Reputation: 0
apache connectivity problem


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
 
Old 09-02-2004, 02:12 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
"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.
 
Old 09-02-2004, 02:15 AM   #3
Drissical
LQ Newbie
 
Registered: Sep 2004
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
Old 09-02-2004, 04:07 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
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.

good luck
 
Old 09-02-2004, 05:03 AM   #5
Drissical
LQ Newbie
 
Registered: Sep 2004
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
Old 09-02-2004, 05:45 AM   #6
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
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.

good luck again
 
Old 09-08-2004, 11:05 AM   #7
Drissical
LQ Newbie
 
Registered: Sep 2004
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
JDBC-ODBC connectivity problem rajivb Programming 3 03-09-2005 10:22 AM
Kernel 2.6.6 upgrade - network connectivity problem Moonman Linux - General 5 06-19-2004 11:41 AM
Gaim Connectivity Problem msamair Linux - General 0 06-15-2004 12:24 PM
RH 9 Connectivity Problem(s) EmmettHR Linux - Networking 5 07-13-2003 05:39 PM
Network Connectivity Problem (RedHat 7.2) exitsfunnel Linux - Networking 10 05-26-2003 09:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration