[99s-extend] ranch dispatch error ver 1.0.0

Samir Sow samset at wanadoo.fr
Mon Aug 4 18:39:26 CEST 2014


Hi,

I’ve moved a working http server to https.
SSL handshaking is ok but i got the following Ranch error :

[error] Ranch listener https_mta had connection process started with cowboy_protocol:start_link/4 at <0.601.0> exit with reason: {badarg,[{binary,match,[[<<"com">>,<<"oockit">>,<<"www">>],<<".">>],[]},{cowboy_router,split_host,2,[{file,"src/cowboy_router.erl"},{line,305}]},{cowboy_router,match,3,[{file,"src/cowboy_router.erl"},{line,240}]},{cowboy_router,execute,2,[{file,"src/cowboy_router.erl"},{line,169}]},{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,435}]}]}

call is

curl --cacert priv/cert/root.crt "https://www.oockit.com:7171/mtagw?


dispatch is 

[{'_', [
        {["/static/[...]"], cowboy_static, [{directory, {priv_dir, ?APP, [<<"static">>]}},
        {mimetypes, {fun mimetypes:path_to_mimes/2, default}}]},
	{"/mtagw", hck_mta, []}
    ]}]).


Any clue ?

Thanks

sincerely

Samir



More information about the Extend mailing list