Join the community today
Become a Member

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:
    1:56 PM
    Hello @eva2000 do you have any experiences and maybe you know is it possible to use Use Route53 for geoDNS and Couldflare for CDN?

    AWS Route53 for DNS only and use GEO DNS to route to multiple servers.
    VPSs I want to have non Amazon.

    Use Couldfront and for examples subdomain cdn.domain.com for CDN only?

    Is it possible? Have anyone any experiences?



    At the moment I have Route53 for zone and Couldfront with created Amazon SSL for cdn subdomain. I use CNAME to hide couldfront and have cdn.domain.com for better SEO.



    PS.
    I have two VPS one in US and one in EU.
    I am wondering if is it possible to use one domain to do it.

    I could use two domains one for geoDNS and 2nd one for CDN. I have found this:
    https://stackoverflow.com/questions...-based-routing-in-conjunction-with-cloudflare

    PPS. Is it a solution for you @eva2000 as you was writing about big cost for business version of cloudfront?



    The thing is it possible to use 1 domain??



    I am not sure buy maybe a solution with different domains and pointing exact cnd1 for USA and cnd2 for Europe, would be solution for other problems like cache.
    In other way I need to implement rsync and some cron... I don't know.
    This is other topic.
     
    Last edited: Mar 18, 2020
  2. eva2000

    eva2000 Administrator Staff Member

    55,229
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    9:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    You need to use Cloudflare DNS if you want to use Cloudflare features unless you're on Cloudflare Enterprise paid plan which can allow subdomains on their own CF account so other subdomains can use non-Cloudflare DNS.

    Cloudflare has it's own GeoDNS via Geo Steering I Wanna Go Fast - Load Balancing Dynamic Steering
     
  3. adamus007p

    adamus007p Member

    368
    18
    18
    Feb 8, 2019
    Ratings:
    +35
    Local Time:
    1:56 PM
  4. eva2000

    eva2000 Administrator Staff Member

    55,229
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    9:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. adamus007p

    adamus007p Member

    368
    18
    18
    Feb 8, 2019
    Ratings:
    +35
    Local Time:
    1:56 PM
    Should I add this domain on centminmode too?

    CFdomain.com

    CF- Cloudflare domain?


    George may you advice about configuration?

    Follow of https://stackoverflow.com/questions...-based-routing-in-conjunction-with-cloudflare

    I have created a CNAME subdomain cdn.CFdomain.com pointing domain.com which is on Route53.

    At the moment when I will enter cdn.CFdomain.com I see a Centminmod Test page.

    What I should to do next?
     
    Last edited: Mar 19, 2020
  6. eva2000

    eva2000 Administrator Staff Member

    55,229
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    9:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yes both domains need to be added to Centmin Mod as well. I would do a test on a test VPS server with test domains so you do not mess up your live site. You'd be on your own for figuring this out beyond just adding domains to Centmin Mod Nginx.
     
  7. adamus007p

    adamus007p Member

    368
    18
    18
    Feb 8, 2019
    Ratings:
    +35
    Local Time:
    1:56 PM
    How to add it? May you advise more?
     
  8. eva2000

    eva2000 Administrator Staff Member

    55,229
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    9:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  9. adamus007p

    adamus007p Member

    368
    18
    18
    Feb 8, 2019
    Ratings:
    +35
    Local Time:
    1:56 PM
  10. adamus007p

    adamus007p Member

    368
    18
    18
    Feb 8, 2019
    Ratings:
    +35
    Local Time:
    1:56 PM
    @eva2000 or anyone is it possible to use:

    subdomain.nonCloudFlareDomain.com CNAME it to subdomain.CloudFlareDomain.com ?

    subdomain.CloudFlareDomain.com is pointed to IP


    Is is possible?



    At the moment I can use subdomain.CloudFlareDomain.com and use it as CDN, but I wanted to hide subdomain.CloudFlareDomain.com to use the main subdomain.nonCloudFlareDomain.com due to SEO.
     
  11. eva2000

    eva2000 Administrator Staff Member

    55,229
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    9:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    try it yourself and see, should be able to

    what SEO measure requires that ? haven't heard of such
     
  12. adamus007p

    adamus007p Member

    368
    18
    18
    Feb 8, 2019
    Ratings:
    +35
    Local Time:
    1:56 PM
    It is better when your images is owned by your domain not from 3rd party.

    When someone would search by images and will find your image which is like cdn.domain.com it looks better then

    cnd.some3rdpartyDoimain.com.

    It looks more pro and it give more trust.

    Google know that cdn.domain.com is owned by domain.com.

    3rd party domain is separate thing.



    Theoretically when you own both domains you can add them to Google Webmaster Tool, when the cloudflare domain you will not add. That's why there is a CNAME option to use.
    Moreover there might be some cross domain issues.
     
  13. eva2000

    eva2000 Administrator Staff Member

    55,229
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    9:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    then just put domain.com as a whole on Cloudflare :)
     
  14. adamus007p

    adamus007p Member

    368
    18
    18
    Feb 8, 2019
    Ratings:
    +35
    Local Time:
    1:56 PM
    Normally yes, when you have one server/VPS. When you want to use geoDNS you need to buy business version of Cloudflare. With free versionof Cloudflare there is no geoDNS. Am I right?


    That's why I am testing now Route53 and Cloudflare together.
     
  15. eva2000

    eva2000 Administrator Staff Member

    55,229
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    9:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Cloudflare Load Balancing is separate paid option separate from Cloudflare free, pro, biz plan features.
     
  16. adamus007p

    adamus007p Member

    368
    18
    18
    Feb 8, 2019
    Ratings:
    +35
    Local Time:
    1:56 PM
    How much it is cost?
     
  17. eva2000

    eva2000 Administrator Staff Member

    55,229
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    9:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Cloudflare link to billing is in CF Load Balancer tab in your dashboard

    which links to Billing for Cloudflare Load Balancing

    once you activate Loadbalancer you get access to the subscription configuration/pricing calculator

    So for US$5/month you get 2 origins, slower 60s default health checks from 1 region without geo steering (GeoDNS) for first 500,000 requests with US$0.50 per 500K requests overage charge

    cf-loadbalancer-price-01.png

    For US$45/month you get 2 origins, with faster 15s health checks from 8 regions with geo steering (GeoDNS) enabled for first 500,000 requests with US$0.50 per 500K requests overage charge

    cf-loadbalancer-price-02.png

    For US$135/month you get 20 origins, with faster 15s health checks from 8 regions with geo steering (GeoDNS) enabled for first 500,000 requests with US$0.50 per 500K requests overage charge

    cf-loadbalancer-price-03.png
     
  18. adamus007p

    adamus007p Member

    368
    18
    18
    Feb 8, 2019
    Ratings:
    +35
    Local Time:
    1:56 PM
    subdomain.nonCloudFlareDomain.com CNAME it to subdomain.CloudFlareDomain.com ?

    subdomain.CloudFlareDomain.com is pointed to IP


    I think that Cloudflare block this kind of solution.

    DNS resolution error
    What happened?
    You've requested a page on a website (cdn.nonCloudFlaredomain.com) that is on the Cloudflare network. Cloudflare is currently unable to resolve your requested domain (cdn.nonCloudFlaredomain.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.


    can anyone test it?

    I did not find such solution in the Internet.




    Domains:
    non Cloudfrare DNS:
    subdomain.nonCloudFlareDomain.com CNAME it to subdomain.CloudFlareDomain.com ?

    on CloudFlare DNS
    subdomain.CloudFlareDomain.com is pointed to IP


    VPS:

    two domains added
    main domain of the website
    nonCloudFlareDomain.com

    and
    subdomain.nonCloudFlareDomain.com

    in my case: cdn.domain.com



    Tests show that Cloudflare block it or I made some mistake.
     
  19. adamus007p

    adamus007p Member

    368
    18
    18
    Feb 8, 2019
    Ratings:
    +35
    Local Time:
    1:56 PM
    When I turn off proxy on Cloudflare I can see pictures using DNS only.

    But I have some SSL error:
    NET::ERR_CERT_AUTHORITY_INVALID

    how to use SSL or validate it when I am using Cloudflare?
     
    Last edited: Mar 23, 2020
  20. eva2000

    eva2000 Administrator Staff Member

    55,229
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    9:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Assuming you're talking about Amazon AWS Cloudfront and not Cloudflare, you need to enable AWS Cloudfront HTTPS and get an SSL certificate on AWS Cloudfront end. See linked topics at Using HTTPS with CloudFront - Amazon CloudFront