[erlang-questions] [Erlang-Q]How to configure Nitrogen webserver with http port 80
Kenny Stone
kennethstone@REDACTED
Sat May 7 05:52:58 CEST 2011
Are you running as root? Linux will usually make you have root permissions
to run on 80.
On Fri, May 6, 2011 at 9:51 PM, Barco You <barcojie@REDACTED> wrote:
> Dear All,
>
> 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!
>
>
> [
> {port, 80},
> {bind_address, {0,0,0,0}},
> {server_name, "nitrogen"},
> {server_root, "./"},
> {document_root, "./site/static"},
> {error_log, "./log/inets.log"},
> {modules, [nitrogen_inets]},
>
> {mime_types, [
> {"css", "text/css"},
> {"js", "text/javascript"},
> {"html", "text/html"}
> ]}
> ].
>
> =ERROR REPORT==== 7-May-2011::10:49:19 ===
> Failed initiating web server:
> undefined
> {{listen,eacces},
> {child,undefined,
> {httpd_acceptor,{0,0,0,0},80},
> {httpd_acceptor,start_link,
> [<0.62.0>,ip_comm,
> {0,0,0,0},
> 80,httpd_conf__0_0_0_0__80,15000]},
> permanent,1000,worker,
> [httpd_acceptor]}}
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110506/62c50f06/attachment.htm>
More information about the erlang-questions
mailing list