I have a redash EC2 instance running well on its public IP address. I want to place it behind an Elastic Load Balancer or CloudFront Distribution but the health check keeps failing since nginx is always returning a 302 redirect instead 200.
HTTP/1.1 302 FOUND
Server: nginx
Date: Wed, 02 Aug 2017 01:29:39 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 347
Connection: keep-alive
Have anyone tried this setup? Any idea on why is the redirect happening?
Hello @arikfr. I am so sorry for the late reply. Could not work on this until now.
I did the change you mentioned and I am still getting the redirection:
HTTP/1.1 302 Moved Temporarily
Content-Type: text/html; charset=utf-8
Content-Length: 353
Connection: keep-alive
Date: Thu, 26 Oct 2017 00:24:29 GMT
Server: nginx
I whitelisted the Host header in cludfront and now the cloudfront host is kept, it does not redirect to the ELB DNS, but the protocol is change to http.
Did you do any other change in your setup? Thanks a lot!