Going Live And Using Cloudflare – Reverse Proxy
This is part of a series on hosting a website on the Raspberry Pi. Click the Raspberry Pi Webserver in the Blog Series to the right for the complete steps.
To continue any further you will need to have purchased or obtained a domain name. You will need access to the domain name registrar to complete Cloudflare setup.
Before we start with Cloudflare, log in to your network router and usually under advance settings find Port Forwarding. You will need to port forward port 80 and 443. Since every device is different, I can’t provide any one solution. Google is your friend.
Next you will need to open the hosts file located at C:\Windows\System32\drivers\etc and comment out your previously added entry. Save and exit notepad.
Starting with Cloudflare, let’s go to their website and create an account by clicking Sign Up – Cloudflare.com
Enter your email and create a password, then click Sign up
Clicking Websites in the menu on the left will allow you to add a website.
Click Add Site to add your domain name.
Enter your domain name and click Add Site.
Scroll to the bottom and select Free then click Continue.
Review the DNS data provided, make any changes you want, and click Continue.
Note: Make sure the IP address under Content match your network’s external IP. Hit this site to check your router’s IP – https://whatismyipaddress.com/
Next, you must point your domain name to Cloudflare by changing your registrar’s nameservers to the provided nameservers from Cloudflare. Use the nameservers provided by Cloudflare and not the examples below. Using the two provided nameservers, login to your registrar and make the changes. Click Done, check nameservers button when complete.
If the Quick Start Guide appears, you can apply these settings. Click Get started to start and the Save button after each option.
Click Finish to complete the setup.
After receiving an email from Cloudflare stating that your site is active, you should be able to type your domain name into the browser and see either your website (if you start one already) or the sample WordPress provided.
Let’s keep going with security and add encryption to your site: Free Site Encryption With Let’s Encrypt.
Share this content:
Leave a Reply