[Solved] Selecting port for lighttpd
Added by ranchu about 7 years ago
Hello,
I followed lighttpd tutorial here:
https://redmine.lighttpd.net/projects/1/wiki/TutorialConfiguration
I would please like to ask if there is any benefit in using port 80 instead of another port (as given in the first example in this page) ?
Thank you,
Ran
Replies (2)
RE: Selecting port for lighttpd - Added by carpii about 7 years ago
Typically you might bind lighttpd to a different port if you are using a reverse proxy (such as haproxy).
Alternatively if you are in an intranet environment, its quite common too
For publishing a general website accessible to the public, it would be unusual to run http on anything other than port 80, since that port is conventional
RE: Selecting port for lighttpd - Added by gstrauss about 7 years ago
Thanks, @carpii. Good reasons.
As noted in TutorialConfiguration in the example using server.port = 80
Now the web server is listening on port 80, the default for HTTP traffic, and will switch to the user www and the group www . The server has to be started as root to take control of port 80, but it's not necessary or a good idea to continue running as root after port acquisition, so the server switches to user www.