Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Port 80 2

Status
Not open for further replies.

sarm

Programmer
Aug 13, 2001
77
US
Hello,
Is there a way to tell if apache is indeed listening
on port 80. I have installed 1.3.14. I have seen some doc's
on httpd.conf and BindAdress * is not in my file does it need to be.

I have listen 80 but do not have BindAddress *
Is this needed to tell port 80 which eth0 to listen on.
If I should have it would the correct syntax be
BindAddress x.x.x.x:80

thank you

 
Apache listens to port 80 by default. Easy way to check is to open up a browser and type
Code:
[URL unfurl="true"]http://localhost[/URL]
. If Apache's default page comes up then it is indeed listening to port 80. Wushutwist
 
Another way is to type

netstat -pln
then you should see a line similar to:

tcp 0 0.0.0.0:80 0.0.0.0:* LISTEN ###/httpd

This means that your server is litening on all interfaces/ips on port 80 for requests from any host and that the httpd process (apache) is handling this port.

if it says something like:

tcp 0 1.2.3.4:80 0.0.0.0:* LISTEN ###/httpd

it means you are binding apache only to the ipaddress 1.2.3.4


Hope that helps

-John ---
John Hoke
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top