Join the community today
Register Now

Amazon AWS Cloudflare Use Route53 for geoDNS and Cloudflare for CDN

Discussion in 'Domains, DNS, Email & SSL Certificates' started by adamus007p, Mar 18, 2020.

  1. adamus007p

    adamus007p Member

    368
    18
    18
    Feb 8, 2019
    Ratings:
    +35
    Local Time:
    2:21 PM
    I am sorry I mean Cloudflare not Cloudfront which is from Amazon. I will correct my post above.

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,229
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    10:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Try changing Cloudflare to Full SSL non-strict mode and re-enable orange cloud proxy
     
  3. adamus007p

    adamus007p Member

    368
    18
    18
    Feb 8, 2019
    Ratings:
    +35
    Local Time:
    2:21 PM
    I am trying to open cdn (some jpg) in browser.


    https://cdn.domain.com/img/abcd.jpg


    This site can’t be reached

    cdn.domain.com unexpectedly closed the connection.


    when I change to http://cdn.domain.com/img/abcd.jpg
    there is error

    Please enable cookies.
    Error 1001 Ray ID: 57xxxxx3cd447 • 2020-03-23
    DNS resolution error
    What happened?
    You've requested a page on a website (cdn.domain.com) that is on the Cloudflare network. Cloudflare is currently unable to resolve your requested domain (cdn.domain.com). There are two potential causes of this:

    Most likely: if the owner just signed up for Cloudflare it can take a few minutes for the website's information to be distributed to our global network.
    Less likely: something is wrong with this site's configuration. Usually this happens when accounts have been signed up with a partner organization (e.g., a hosting provider) and the provider's DNS fails.
     
    Last edited: Mar 24, 2020
  4. adamus007p

    adamus007p Member

    368
    18
    18
    Feb 8, 2019
    Ratings:
    +35
    Local Time:
    2:21 PM
    OK i have found info:

    Troubleshooting Cloudflare 1XXX errors

    A non-Cloudflare domain cannot CNAME to a Cloudflare domain unless the non-Cloudflare domain is added to a Cloudflare account.
     
  5. eva2000

    eva2000 Administrator Staff Member

    55,229
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    10:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Ah that explains why I could do it. So guess not an option for you as DNS you need AWS Route53
     
  6. adamus007p

    adamus007p Member

    368
    18
    18
    Feb 8, 2019
    Ratings:
    +35
    Local Time:
    2:21 PM
    could or could not do it?
     
  7. eva2000

    eva2000 Administrator Staff Member

    55,229
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    10:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    I could do it because both domains are on CF just one is with grey cloud DNS only
     
  8. adamus007p

    adamus007p Member

    368
    18
    18
    Feb 8, 2019
    Ratings:
    +35
    Local Time:
    2:21 PM
    OK I understand. I did not found my solution so i test my webiste and DNS.

    I need to read more about other thing which you wrote.


    There is other thind that you can use a solution like he wrote.
    CNAME from CloudflareDomain to nonCloudflareDomain.



    Moreover info from here is against the CF policy. I mean this solution.
    https://stackoverflow.com/questions...-based-routing-in-conjunction-with-cloudflare

    Self-Serve Subscription Agreement | Cloudflare
    DNS only should be ok, but serving with other domain only images seems not.



    @eva2000 you wrote that you can use header for subdomains.

    Code (Text):
    add_header Link "<http://domain.com$request_uri>; rel=\"canonical\"";



    http only or is should be https?
     
  9. adamus007p

    adamus007p Member

    368
    18
    18
    Feb 8, 2019
    Ratings:
    +35
    Local Time:
    2:21 PM
    @eva2000 you wrote that you can use header for subdomains.

    Code (Text):
    add_header Link "<http://domain.com$request_uri>; rel=\"canonical\"";



    http only or is should be https?

    Have you make a research about it?
     
  10. eva2000

    eva2000 Administrator Staff Member

    55,229
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    10:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    should use whatever you intend for your site to be used with - which usually is https these days