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

后端 未结 14 2558
旧巷少年郎
旧巷少年郎 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:19

    Fixed this issue by concatenating my certificates to generate a valid certificate chain (using GoDaddy Standard SSL + Nginx).

    http://nginx.org/en/docs/http/configuring_https_servers.html#chains

    To generate the chain:

    cat 123456789.crt gd_bundle-g2-g1.crt > my.domain.com.chained.crt
    

    Then:

    ssl_certificate /etc/nginx/ssl/my.domain.com.chained.crt;
    ssl_certificate_key /etc/nginx/ssl/my.domain.com.key;
    

    Hope it helps!

提交回复
热议问题