I just got myself a VPS with fresh FreeBSD 9 installed. I wrote a simple hello world custom web server. It ran ok listening on port 8080 to serve pages to internet visitors, i.e. http://domain:8080 served up the page.
But when I switched it to listen to port 80, I got:
And then the process exited without any error message. And http://domain failed cause the web server is not up.
I assume if I get the web server to work on port 80, then http://domain will serve up pages.
Q1: If the assumption is correct, then what do I need to set to let it listen on port 80?
Q2: If the assumption is incorrect, then how do I serve http://domain without visitor having to specify port?
The fresh install had /etc/services showing http on port 80 line.
Thanks.
But when I switched it to listen to port 80, I got:
Code:
starting .. port # :80
I assume if I get the web server to work on port 80, then http://domain will serve up pages.
Q1: If the assumption is correct, then what do I need to set to let it listen on port 80?
Q2: If the assumption is incorrect, then how do I serve http://domain without visitor having to specify port?
The fresh install had /etc/services showing http on port 80 line.
Thanks.