How to connect digitalocean instance to cloudflare?


#1

Hello Friends,

i have an instance on digitalocean and a domain on godaddy, i successfully connected the domain to the instance by changing domain`s nameserver to point to digital ocean and now the website is connected to domain but i want to put the same website on cloudflare, the question is how i can do that ?

Thank you.


#2

You need to use Cloudflare’s Name servers and DNS to make the connection.


#3

I added the domain to cloudflare and i changed the nameserver in godaddy but am getting this message now:


#4

So…the IP address you have tied to that DNS entry should be your Droplet at Digital Ocean, but a 521 means Cloudflare is not getting a response.

From the Cloudflare DNS page, set your domain to :grey: and see if it works. This will bypass Cloudflare so you go straight to your Digital Ocean server.


#5

Thanks for your quick response, i did that and unfortunately am having this page now.

Thanks.


#6

So it’s definitely a server error.

Did it work before you added it to Cloudflare?

If you run ‘netstat -a’ on your droplet, is it listening for http and/or https?

Are you super-sure the DNS entry here at Cloudflare matches the IP address of your droplet?


#7

Yes

i dont know what that means

Yes, first i added the name server of Digitalocean to the domain DNS, to connect the domain to the server, then i added the website to cloudflare and i changed the domain dns pointed to Lily and todd

i dont know if i did it correct,


#8

netstat is something you would run from command line, such as on your droplet.

If you’d like more precise troubleshooting help, go ahead and post your domain name. If you’re not comfortable with making it public, I can DM you.


#9

Please find it below:

Jobium.net


#10

Can you set it to :grey:?


#11

Hi,

Its back only after i changed the status of SSL from full to flexible but am getting the warning of the connection not being secure, i don`t know. if this will take some time until stabilize


#12

It sounds like you don’t have SSL installed on your Droplet. Here are their instructions on how to do that:


#13

In fact i dont, i will check this and back if any help needed, until then let me say thanks a lot for your time, i appreciate this.


#14

This topic was automatically closed after 31 days. New replies are no longer allowed.