[erlang-questions] [Erlang-Q]How to configure Nitrogen webserver with http port 80
Loïc Hoguin
essen@REDACTED
Sat May 7 10:38:29 CEST 2011
Hello,
On 05/07/2011 04:51 AM, Barco You wrote:
> After installing Nitrogen webserver and when startup it with "$nitrogen
> console", I can visit the localhost successfully with
> "http://localhost:8000", but I hope to use the default http port 80.
> When I edit the file /etc/inets_httpd.erleven as following, I got a
> crash error as below. Could you please instruct me how to change the
> port correctly? thanks!
Only root can open ports <= 1024. Problem is, it's not safe to run
Erlang as root. There's two solutions to solve this:
* Setup a reverse proxy in cherokee or nginx to your port 8000.
* Use procket: https://github.com/msantos/procket
Considering you are using Nitrogen you should take the first option,
unless you're willing to patch Nitrogen.
--
Loïc Hoguin
Dev:Extend
More information about the erlang-questions
mailing list