sửa file config của server thành thế này là được:

server {
           listen 80 default_server;
           listen [::]:80 default_server;
           server_name _;
           location / {
                        proxy_set_header Host $proxy_host;
                        proxy_pass_request_headers on;
                       #proxy_ignore_headers Set-Cookie;
                       #proxy_set_header     Host          $host;
                       proxy_pass https://...execute-api.us-east-1.amazonaws.com;
           }
}

Bình luận (1)

root2019-04-22 09:12

thêm option này nếu bị lỗi SSL_do_handshake() failed
proxy_ssl_server_name on;