When working on remote mode (vod_mode remote;) and the upstream returns code other than 200/206, the client gets 502.
The source of it is probably here
I have some authorization and rate-limiting implementation on the upstream that I want to make visible to the CDN and client.
I've tried to use the following error_page directive in order to override the 502 response, with no luck:
Seems like the error_page directive is ignored and I still get 502 on the client-side.
I understood from browsing in other issues that supporting upstream return codes are a low priority and is not planned.
Is there a workaround for this issue? any other wrapper than error_page? Or maybe a way to make the error_page work?
When working on remote mode (
vod_mode remote;
) and the upstream returns code other than 200/206, the client gets 502. The source of it is probably hereI have some authorization and rate-limiting implementation on the upstream that I want to make visible to the CDN and client. I've tried to use the following
error_page
directive in order to override the 502 response, with no luck:Seems like the error_page directive is ignored and I still get 502 on the client-side.
I understood from browsing in other issues that supporting upstream return codes are a low priority and is not planned. Is there a workaround for this issue? any other wrapper than error_page? Or maybe a way to make the error_page work?