From c5001d8e36cf10fa4d1f01fa7bb4f1710ec23a01 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Thu, 20 Mar 2014 19:56:33 +0100 Subject: Init. --- src/tools/httpd_config | 10 ++++++++++ src/tools/httpd_inets.config | 24 ++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 src/tools/httpd_config create mode 100644 src/tools/httpd_inets.config (limited to 'src') diff --git a/src/tools/httpd_config b/src/tools/httpd_config new file mode 100644 index 0000000..8dc9238 --- /dev/null +++ b/src/tools/httpd_config @@ -0,0 +1,10 @@ +ServerName httpd_inets_FQDN +ServerRoot /tmp/httpd_inets +DocumentRoot /tmp/httpd_inets/docroot +Port 8080 +SocketType essl + +SSLCertificateFile /tmp/httpd_inets/02.pem +SSLCertificateKeyFile /tmp/httpd_inets/srv1.key +SSLCACertificateFile /tmp/httpd_inets/01.pem + diff --git a/src/tools/httpd_inets.config b/src/tools/httpd_inets.config new file mode 100644 index 0000000..4635c1e --- /dev/null +++ b/src/tools/httpd_inets.config @@ -0,0 +1,24 @@ +%% 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"}]}, +%% {server_name,"httpd_inets_FQDN"}, +%% {server_root,"/tmp/httpd_inets"}, +%% {port,8080}, +%% {document_root,"/tmp/httpd_inets/docroot"}, +%% {bind_address,{127,0,0,1}}] +%% +[{inets, [{services, [ + %%{httpd, [{proplist_file, "httpd_inets_props.conf"}]}, + {httpd, [{file, "httpd_config"}]} + ]}]}]. -- cgit v1.1