Erlang Web and Inets BindAddress

446 views Asked by At

After installing Erlang Web 1.3 and starting it in interactive mode, I get the following error in the logs:

Failed to start service: "config/inets.conf"
due to: "httpd_conf: 0.0.0.0 is an invalid address"

In my inets.conf I have the following:

BindAddress 0.0.0.0

My sys.config:

[{inets,[{services,[{httpd,"config/inets.conf"}]}]}].

Any suggestion?

3

There are 3 answers

0
Roberto Aloi On BEST ANSWER

I fixed the problem by myself.

I just changed the BindAddress line in inets.conf into:

BindAddress *
0
John Boker On

i have no experience with this language or situation, but it looks like that 0.0.0.0 is an invalid address, have you tried changing it to something like 127.0.0.1 ?

1
legoscia On

This configuration directive is being parsed and validated by httpd_conf, which in turn calls httpd_util:ip_address/2. Both of these were changed in R13B02. Have you tried with that Erlang/OTP version?