Cloudfront custom-origin distribution returns 502 “ERROR The request could not be satisfied.” for some URLs

后端 未结 14 2619
旧巷少年郎
旧巷少年郎 2020-12-07 15:32

We have a Cloudfront distribution with custom origin that has been working just fine for quite a long time, serving static assets for one of our sites. Just this morning, we

14条回答
  •  情话喂你
    2020-12-07 16:00

    In my case, I use nginx as reverse-proxy for an API Gateway URL. I got same error.

    I resolved the issue when I added the following two lines to the Nginx config:

    proxy_set_header Host "XXXXXX.execute-api.REGION.amazonaws.com";
    proxy_ssl_server_name on;
    

    Source is here: Setting up proxy_pass on nginx to make API calls to API Gateway

提交回复
热议问题