Erlang/OTP Forums

Author Message

<  Erlang  ~  httpd proplist_file and cgi

dmontagnese
Posted: Wed Jul 22, 2009 3:50 am Reply with quote
Joined: 22 Jul 2009 Posts: 2
The following are the contents of a proplist_file used to run an erlang stand_alone httpd server:

[
{ server_name, "erlangWebServer" },
{ port, 2000 },
{ server_root,
"/home/dan/src/erlang/webServer" },
{ document_root,
"/home/dan/src/erlang/webServer/www" },
{ error_log, "webServer.log" },
{ script_alias, { "/cgi-bin/", "/home/dan/src/erlang/webServer/cgi-bin/" } },
{ script_nocache, true },
{ alias, { "/image/", "/home/dan/src/erlang/webServer/image/" } },
{ directory_index, [ "index.html" ] },
{ erl_script_alias, { "/firstEsi", [ firstEsi ] } },
{ modules,
[
mod_alias,
mod_cgi,
mod_dir,
mod_esi,
mod_get,
mod_head,
mod_log,
mod_disk_log
] }
].

Although, images in the aliased "image" directory are accessed, a perl script in the script_alias does not seem to run. It is executable and prints a line of plain text to stdout. Is there some configuration item that is missing?
After I understand how to get cgi working, I may have more clues about how to get esi working.
View user's profile Send private message
baryluk
Posted: Tue Aug 18, 2009 9:57 am Reply with quote
User Joined: 05 Aug 2009 Posts: 48
In case of esi this can help.

http://blog.foemmel.com/2008/05/hello-world-webapp-in-erlang.html

I found that order of mod_* entries is important, and this can be the reason.
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum