[erlang-patches] erl_script_alias enhancement proposal
Nicolas Charpentier
nc@REDACTED
Fri Aug 29 06:48:41 CEST 2008
Hi,
I don't know if it's the correct mailing list to send such patch. Let me
know if I'm doing 'bad things'.
* Purpose of the evolution.
Right now if you have a httpd configuration containing
{erl_script_alias, "/my_dir", [ mod1, mod2]}, you'll be able to execute
erlang module hitting urls like http://myhost/my_dir/mod1:any_function
and http://myhost/my_dir/mod2:anyfunction
I'd like to be able to omit the module and the function name in the url.
(put http://myhost/my_dir or http://myhost/my_dir/ in my broswer) and
get some erlang code executed.
* Enhancement proposal
Add the possibiity to configure httpd with something like
{erl_script_alias, {"my_dir",{{Module,Function}, Authorized_modules}}},
Where Module:Function will be the function called for the url "/my_dir"
Regards,
----
Nicolas Charpentier
http://charpi.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: erl_script_alias_proposal.patch
Type: text/x-diff
Size: 811 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20080829/8e5033f6/attachment.bin>
More information about the erlang-patches
mailing list