DNS setup from Cloudflare to Amazon API Gateway -


i have website mydomain.com dns configured through cloudflare. in process of setting api accessible through api.mydomain.com

the servers use hosted on digital ocean, use of features of amazon api gateway interface (i later migrating servers on amazon). api server same website (again later separated, effective record same digital ocean node). api gateway interface configured , can access fine through provided endpoint someamazonendpointurl.com/stage

on amazon have created cloudflare distribution origin api.mydomain.com. has basic http https behaviours along query string parameters. set cname record on cloudflare point endpoint url. when try , access api.mydomain.com though chrome error:

err_too_many_redirects 

does have idea might have misconfigured. realise bit of odd setup, stop-gap while migrate our servers on amazon.

update

i noticed had cname record in cloudfront api.mydomain.com. i've removed get:

error  request not satisfied.  bad request.  generated cloudfront (cloudfront) request id: <id> 

most have ssl mode on cloudflare set "flexible", doesn't use https connect origin server. api gateway tries redirect non-secure requests, have redirect loop.

set ssl mode "full" , should go! can on "crypto" tab of cloudflare dashboard.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -