[99s-extend] Rewriting URLs
Loïc Hoguin
essen at ninenines.eu
Tue Jan 27 11:13:41 CET 2015
On 01/26/2015 10:54 PM, Paul Dickson wrote:
> On Mon, 2015-01-26 at 11:26 +0100, Loïc Hoguin wrote:
>> You have to change path_info too if your middleware is after the router.
>>
> I have added that. My cowboy:start_http parameters include this:
> {middlewares, [cowboy_router, bz_libmap, cowboy_handler]}
> which I think means bz_libmap will get called on *every* request. This
> seems to work. Among the dispatch rules is this line:
> {"/music/[...]", cowboy_static, {dir, "", ""}},
Is it the actual line? Cause {dir, "", ""} is wrong, the third element
must be an etag or mimetype tuple.
Otherwise, I need a more complete error, or code.
--
Loïc Hoguin
http://ninenines.eu
More information about the Extend
mailing list