[erlang-questions] running inets httpd on windows

June Kim juneaftn@REDACTED
Sun May 6 15:58:34 CEST 2007


> http://localhost:8080/config.shtml
> http://localhost:8080/exec.shtml

The reason that the two links above didn't work was, there was some
*nixism in the file, such as:

<!--#exec cmd="ls"-->
<HR>
<!--#exec cmd="printenv"-->
<HR>
<!--#exec cmd="sunemaja"-->
<HR>
<!--#exec cgi="/cgi-bin/printenv.sh"-->

The ERROR REPORT thing still remains though.

2007/5/6, June Kim <juneaftn@REDACTED>:
> I followed the steps in
> http://www.erlang.org/doc/doc-5.5.3/lib/inets-4.7.8/doc/html/part_frame.html
>
> I first created a server_root path as:
>
> C:\> mkdir \var\tmp\server_root
>
> and then created a file called "inets.config" at the path:
>
>      [{inets,
>        [{services, [{httpd, [{file,"/var/tmp/server_root/conf/8888.conf"}]},
>                     {httpd, [{file,"/var/tmp/server_root/conf/8080.conf"}]}]
>         }
>        ]
>       }
>      ].
>
> Now I copied the examples/server_root/* to C:\var\tmp\server_root\* as:
>
> C:\var\tmp\server_root>xcopy "c:\Program Files\erl5.5.3\lib\inets-4.7.8\examples
> \server_root" . /s
>
> Now run the erl shell as:
>
> C:\var\tmp\server_root>erl -config inets.config
> Eshell V5.5.3  (abort with ^G)
> 1> application:start(inets).
>
> =ERROR REPORT==== 6-May-2007::22:41:11 ===
> failed to create child spec for
> [{file,"/var/tmp/server_root/conf/8888.conf"}]
> due to: "mod_auth: Server configuration missed AuthDBType directive"
>
> =ERROR REPORT==== 6-May-2007::22:41:11 ===
> failed to create child spec for
> [{file,"/var/tmp/server_root/conf/8080.conf"}]
> due to: "httpd_conf: server_name must be specified in the config file"
> ok
> 2>
>
> If I comment out the ServerName line and remove mod_auth from Modules
> directive, it runs without any error report. It was a temporary
> makeshift, though. (What is the proper way to remove the errors?)
>
> I can go to http://localhost:8080 and visit some links there. However,
> http://localhost:8080/config.shtml and
> http://localhost:8080/exec.shtml didn't work.
>



More information about the erlang-questions mailing list