I can have it display an html page when using port 80. However, I need it to use a random port, say 6500. I tried changing "ServerName" and "Listen" in the httpd.conf file to use that port. It won't load the page though. Any ideas?
Try doing "netstat -af inet" and see what ports are listed as LISTEN.
Or just try "telnet localhost 6500" or whatever port you want.
If it's listening you should get something like "Connected to localhost on port 6500 \n Escape character is ^]" or some such.
If it connects, type "GET /" and it should blurt out a bunch of HTML.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.