LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-13-2003, 02:27 PM   #1
KaiHogan
LQ Newbie
 
Registered: Jun 2003
Posts: 25

Rep: Reputation: 15
Question Httpd prob with RH9




Well, I appear to be having problems getting my httpd server up and running on RH9. Here is what I know for sure.

------------------------------
1. The answer is looking right at me and I am just not able to see it.

2. httpd is started and running

3. http://127.0.0.1 does work and I see the pages just fine.

4. http://192.168.1.102 (my servers IP address) will not dispaly the pages even on the local machines browsers. All I get is "The connection was refused when attempting to connect to 192.168.1.102".

5. The network is working as I am using it now to surf the web and post this message.
---------------------------------

Eveything appears to be configured correctly and working, except for the fact that any attempt to connect beyound the 127.0.0.1 fails.


Anyone have any ideas? I am still surfing the web and trolling message boards is search of what must be a simple answer.
 
Old 06-13-2003, 02:36 PM   #2
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
Could it be your firewall dropping outside connections to port 80?
 
Old 06-13-2003, 02:49 PM   #3
KaiHogan
LQ Newbie
 
Registered: Jun 2003
Posts: 25

Original Poster
Rep: Reputation: 15
firewall

Do not think it is that. I have 4 computers on my home network 2 workstations, one voicechat server (win98) and one webserver (rh9). When I am on any computer on my internal network and attempt to get to my webserver, entering the internal IP address of 192.168.1.102, I get "page not found error" and when I attempt to get to 192.168.1.102 from the webserver I get the error message. My hardware router (Linksys) is configured to route port 80 traffic to 192.168.1.102. My software firewall (on RH9) I turned off, thinking that it was indeed blocking me. I continued to get the same results. Starting and stopping httpd did not seem to make any difference.

I am still researching why this is, but no luck yet. I am also very sure that I am looking right at the answer but not abel to see it.
 
Old 06-13-2003, 02:53 PM   #4
KaiHogan
LQ Newbie
 
Registered: Jun 2003
Posts: 25

Original Poster
Rep: Reputation: 15
Follow up.

I just turned off my port 80 forwarding at my router (Linksys) and received a user id/password prompt for my router. I was able to get in to the router. So, not sure what that tells me but at least it gives me a palce to start.
 
Old 06-13-2003, 02:56 PM   #5
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
Try running "nmap 127.0.0.1" and "nmap 192.168.1.102" from the webserver and see if it indicates that port 80 is open.

Ian
 
Old 06-13-2003, 03:03 PM   #6
KaiHogan
LQ Newbie
 
Registered: Jun 2003
Posts: 25

Original Poster
Rep: Reputation: 15
Well, that is sheding more light on the issue.

127.0.0.1 shows port 80 open

192.168.1.102 shows port 80 closed.

So, I must be looking in the wrong place as i have port 80 being monitored in httpd.conf.

Any ideas on what area I over looked in configuring?
 
Old 06-13-2003, 03:07 PM   #7
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
Run , as root, "iptables -L" to see if there are any firewall rules still in place, if there are, "iptables -F" will flush those rules.

Also check thet there is no line anywhere in your httpd.conf thet says "Listen 127.0.0.0:80".

Ian
 
Old 06-13-2003, 03:11 PM   #8
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
As far as I know:
127.0.0.1 is local to your pc, via the loopback interface(lo)
192.168.x.x is local to your private network, via your network card(eth0)
Your firewall may be allowing outbound port80/webpage connections from the server, and internal connections (127.0.0.1) but not allowing external connections to start chatting to things on your port80.
How are you configuring your firewall?
Try something like Guarddog maybe? (See in my first link below)
 
Old 06-13-2003, 03:15 PM   #9
KaiHogan
LQ Newbie
 
Registered: Jun 2003
Posts: 25

Original Poster
Rep: Reputation: 15
iptables gives me a "command not found" error.

httpd.cong has "Listen *:80"


I am still looking for the iptables (guess it is not mapped)
 
Old 06-13-2003, 03:16 PM   #10
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
"/sbin/iptables" is where it is.

Ian
 
Old 06-13-2003, 03:18 PM   #11
KaiHogan
LQ Newbie
 
Registered: Jun 2003
Posts: 25

Original Poster
Rep: Reputation: 15
followup

iptables is in the /sbin directory as expected but even from the same directory I get the error that it cannot be found

[root@localhost sbin]# ls iptables
iptables
[root@localhost sbin]# iptables -L
bash: iptables: command not found

Last edited by KaiHogan; 06-13-2003 at 03:20 PM.
 
Old 06-13-2003, 03:21 PM   #12
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
Just specify the full path: "/sbin/iptables -L"

If you are in the same directory, you need to use "./iptables"

Ian

Last edited by green_dragon37; 06-13-2003 at 03:22 PM.
 
Old 06-13-2003, 03:24 PM   #13
KaiHogan
LQ Newbie
 
Registered: Jun 2003
Posts: 25

Original Poster
Rep: Reputation: 15
Thanks, that did it. This is what was returned.


[root@localhost sbin]# /sbin/iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
 
Old 06-13-2003, 03:30 PM   #14
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
OK, so we know that the firewall is not the problem, so try putting a line in your httpd.conf thet reads "Listen 192.168.1.102:80", and restarting apache.

Ian
 
Old 06-13-2003, 03:31 PM   #15
KaiHogan
LQ Newbie
 
Registered: Jun 2003
Posts: 25

Original Poster
Rep: Reputation: 15
followup

I am guessing now that it has something to do with the DNS in RH9. The DNS entry there is 127.0.0.1.


OK, our post crossed each other. I will go tell it to listen to 192.168.1.102 and see what happens.
 
  


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
httpd in rh9 acrors Red Hat 6 09-07-2004 02:20 AM
httpd-2.0.50-1.0 won't start RH9 jariep Red Hat 5 08-21-2004 02:10 AM
httpd breakdown on RH9 Slurmo Linux - Networking 1 07-31-2004 03:12 PM
how to remove httpd-2.0.40-21 on RH9 icepig Linux - Software 2 11-21-2003 04:41 PM
RH9 Display Prob sukhjeet Red Hat 4 09-01-2003 03:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:44 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