Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section DNS Server
  • Search

Subdomain + Cloudflare = Site can't be reached

Questions regarding the DNS Server
BIND
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
tiptoptommy
Posts: 2
Joined: Sun May 29, 2016 8:09 pm

Subdomain + Cloudflare = Site can't be reached
  • Quote

Post by tiptoptommy » Sun May 29, 2016 8:49 pm

I've been using VestaCP for a few months and have been able to solve my problems via google and this forum. But despite this being a common topic here, I am slightly lost.

I have done the following.

I set up the subdomain as outlined http://stackoverflow.com/questions/2590 ... gitalocean.
I have pointed an A Name record at the server IP in CloudFlare.

Things I've tried.
Removing the alias for the sub domain.
I've restarted apache and nginx via ssh.

I am at a loss as what to look at next. Any advice?
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: Subdomain + Cloudflare = Site can't be reached
  • Quote

Post by skamasle » Mon May 30, 2016 12:51 pm

You not need more, so only add subdomain in vestacp has new domain and point A record to IP.

The problems:

- Maybe you dont point to correct IP.
- Maybe you add incorrect subdomain

Doble check to that points, be sure than your subdomains dont was added to private digitalocean ip ( 10.x.x.x )
Top

joshmarshall
Posts: 2
Joined: Fri Feb 05, 2016 3:38 pm

Re: Subdomain + Cloudflare = Site can't be reached
  • Quote

Post by joshmarshall » Mon May 30, 2016 3:05 pm

What I've done in the past is to set up a subdomain to use with cloudflare, but instead of pointing A record as you have, I pointed NS records.

So if you had testdomain.com

Create subdomain cdn.testdomain.com

Inside the testdomain.com create

cdn NS ns1.cloudflare.com.
cdn NS ns2.cloudflare.com.

You will get different names for ns1 and ns2 at cloudflare.

What this ensures is that anything at testdomain.com does not go through cloudflare but everything cdn.testdomain.com does. I use this to make sure that passwords etc don't go through cloudflare but assets are served by their cdn.
Top

tiptoptommy
Posts: 2
Joined: Sun May 29, 2016 8:09 pm

Re: Subdomain + Cloudflare = Site can't be reached
  • Quote

Post by tiptoptommy » Tue May 31, 2016 5:17 am

Thank you very much to the two replies above. My issue was, it turns out, a lack of patience with DNS propagation.

And thanks to @joshmarshall, I was not aware that we could selectively apply cloudflare to subdomains.
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “DNS Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password