[erlang-questions] [Erlang-Q]How to configure Nitrogen webserver with http port 80

Barco You barcojie@REDACTED
Sat May 7 04:51:12 CEST 2011


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]}}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110507/545c0aaf/attachment.htm>


More information about the erlang-questions mailing list