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 10-15-2004, 05:58 PM   #1
hecter
LQ Newbie
 
Registered: Oct 2004
Posts: 2

Rep: Reputation: 0
Problem recving HTTP requests when Apache listens on port 80


I'm setting up a Linux (Redhat 9) web server using Apache 2.0 and I'm having difficulty getting Apache to receive HTTP requests on port 80 (actually, on any port under 1024) from non-localhost machines. That is, I can view my test page on my web server using localhost:80, however, if I tell Apache to listen on a port higher than 1024 (such as 8000) I can view my web server's test page from the Internet.

Here are the things I have tried so far:

1. Verified that the httpd daemon is started as "root". If it is not started as root then the default security policy prevents people from accessing ports below 1024.
2. When Apache is told to listen on port 80 and I try to browse to my web server from the Internet my firewall accepts these requests and I can see it in the logs, however, I don't see anything in the Apache logs, even at the "debug" log level.
3. I can telnet to port 8000 on my web server from another machine but I can't telnet to port 80.
4. Even when I set my firewall to accept all incoming requests I still have the same problem. Hence, the problems is not likely to be caused by a misconfigured firewall.
5. I can ping my web server from the Internet at all times.

I don't understand why I can't get Apache to listen on port 80 and function like everyone else's web server.

All help is much appreciated.
 
Old 10-17-2004, 02:32 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
This doesn't appear to have anything to do with Wireless networking, so I'm moving it to the general networking forum.

It has to be the firewall. Something is not properly configured for port forwarding. When you have Apache bound to the IP of the external interface, you can still try connecting to it from it's own machine (using Lynx, for example) by the external IP. It will use the loopback adaptor, but it will prove that Apache is bound to the external IP on port 80 and accepting connections.
 
  


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
change port sshd listens on GUIPenguin Linux - General 1 05-24-2005 05:51 AM
Can't get my http server to respond to requests... garydamm Linux - Networking 9 01-16-2005 10:00 AM
Help! (I'm getting flooded with http requests) rknoesel Mandriva 6 11-14-2004 05:57 PM
capture http requests at squid ssharma_02 Linux - Networking 1 09-26-2004 09:04 AM
HTTP port and Proxy port problem AZIMBD03 Linux - Networking 3 04-15-2004 09:20 PM

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

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