Skip to content

KirillTemnov/ew

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

ew - erlang web proxy server.
=============================

ew pronounced like "eve". 

This progect inspired by http://www.trapexit.org/A_fast_web_server_demonstrating_some_undocumented_Erlang_features.

Main purpose of ew project - create reverse proxy server with dynamic variable routes and control of the maximum load.


Using
-----

Launch erlang shell, then type

    make:all().
    {ok, Pid} = ew_server:start_link(8080).
    rr(ew_mgr). 
    ew_mgr:start_link().
    ew_mgr:add_route(#web_route{host="127.0.0.1", port=8080, proxy_host="127.0.0.1",	proxy_port=2000, domain="test", rps_max=500}).


make:all() create binary files, you need to type it just once.


You can use 

    make:all([{d, debug}]).

to see debug messages.

shutting down

   ew_server:stop(Pid).
   ew_mgr:stop().

   or

   Ctrl-c a

get stat

    ew_mgr:list_routes().



License and version
-------------------

This code relesed under GPLv2 license, current version 0.1.5


Known Bugs
----------

Keep alive connections not work for now, so, resiult for them returns after socket timeout.

About

Erlang proxy server

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages