Forum Moderators: phranque
I'm running CentOs distro with Apache 2.2. It is currently installed & running. My problem has to do with the ports. With httpd.conf setting Listen set to *:80, on any internal request from a computer within the network the browser connects and "sees" the test webpage fine. For example 192.168.1.3 is the internal IP I have set for the server.
Removing the Listen *:80, and substituting any other port does not allow the browser to see the test page anymore. For example, if Listen *:65432 is instantiated, and my browser is pointed to [192.168.1.3:65432...] on the internal network no page is displayed. I have tried over a dozen various ports with no success other than default port 80. I am using internet explorer 6.0.something.
My router is forwarding port 65432 to the internal router IP, as well as each of the dozen or so ports I have tried as well.
I'm also unable to get any access to the server from outside of the internal network, but I believe this is related to my port problem internally, and would like to get it solved first.
For my Listen command, should it be set to my internal router assigned IP with the port? Or is *:65432 adequate? Also, should my ServerName be set to the internal router assigned IP, or external ISP provided IP?
Any help or suggestions would be greatly appreciated,
Ryan P.
The httpd server should listen on an IP address which is local to your computer, in your case 192.168.1.3.
Log on to the system as root and give the command netstat -nlp. This gives you a list of services running and the ports that are used. Look at which port httpd is listening.