custom server mux enabling middleware, 404 redirection