1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
%% http://ftp.sunet.se/pub/lang/erlang/doc/apps/inets/http_server.html
%% http://www.erlang.org/doc/man/httpd.html
%%
%% $ erl -config httpd_inets
%% Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:4:4]%% [async-threads:0] [kernel-poll:false]
%%
%% Eshell V5.9.1 (abort with ^G)
%% 1> inets:start().
%% ok
%% 2> [_, Httpd] = inets:services().
%% 3> {httpd, Pid} = Httpd.
%% {httpd,<0.45.0>}
%% 4> httpd:info(Pid).
%% [{mime_types,[{"html","text/html"},{"htm","text/html"}]},
%% {ipfamily,inet6fb4},
%% {server_name,"httpd_inets_FQDN"},
%% {ssl_certificate_file,"/tmp/httpd_inets/02.pem"},
%% {socket_type,essl},
%% {ssl_ca_certificate_file,"/tmp/httpd_inets/01.pem"},
%% {ssl_certificate_key_file,"/tmp/httpd_inets/srv1.key"},
%% {file,"httpd_config"},
%% {server_root,"/tmp/httpd_inets"},
%% {port,8080},
%% {document_root,"/tmp/httpd_inets/docroot"},
%% {bind_address,any}]
%% 5>
%%
[{inets, [{services, [
{httpd, [{proplist_file, "httpd_inets_props.conf"}]}
%%{httpd, [{file, "httpd_config"}]}
]}]}].
|