[erlang-questions] running inets httpd on windows
June Kim
juneaftn@REDACTED
Sun May 6 15:51:27 CEST 2007
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