[erlang-patches] erl_script_alias enhancement proposal

Ingela Anderton Andin <>
Thu Sep 4 08:34:28 CEST 2008


Nicolas Charpentier wrote:
> 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'.

No you are not doing anything wrong. It is a good place to send such a 

> * 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"
Alas we are somewhat short staffed in compared to the current workload 
so we have not had time to really look at your proposal.  But I have put 
it on the todo-list for inets and at first glance I do not
see any problems with it but it is not on top of the priority list, 
hopefully it can make it for the R12B-5 ... but no promises.

Regards Ingela Erlang/OTP - Ericsson

More information about the erlang-patches mailing list