Don’t know how to setup Cloudflare CDN for WordPress on Google Cloud? We can help you.
Serving the website’s content from Cloudflare’s CDN will lead to huge performance benefits, including protection from DDOS attacks.
As part of our Google Cloud Platform Services, we assist our customers with several Google Cloud queries.
Today, let us see how our Support Techs Setup Cloudflare CDN for WordPress on Google Cloud.
How to setup Cloudflare CDN for WordPress on Google Cloud
When configured correctly, Cloudflare CDN can provide huge performance and security benefits for our website.
In this article, let us see how to setup Cloudflare CDN for our WordPress website on Google Cloud.
Benefits of using a CDN
- First and foremost, a CDN is a network of globally distributed servers that store and distribute our website’s content.
- With a CDN configured, our website’s content will load quickly for all users, regardless of their geographic location.
- Finally, consistent shorter load times for visitors.
Prerequisites before we Setup Cloudflare CDN for WordPress on Google Cloud
- Firstly, installed WordPress on Google Cloud
- Next, setup a Domain Name for our website
- Then, reserved a Static IP Address for our website
- Configured SSL for our website (optional)
To setup Cloudflare CDN for WordPress on Google Cloud, follow the steps given below:
Let us see steps followed by our Support Techs.
1. Firstly, create a Cloudflare account
2. Then, change domain nameservers
3. Next, configure Cloudflare crypto settings
4. Optimize Cloudflare caching settings
5. Test website performance
6. Finally, combining Cloudflare CDN and SSL
Create a Cloudflare account
- In web browser, navigate to the Cloudflare signup page.
https://dash.cloudflare.com/sign-up
- On the signup page, choose an email and password to use for our account and click the Create Account button.
- After creating an account, click the + Add a Site button to configure our website with Cloudflare.
- Then, click the Next button to query our DNS records.
- Select the FREE option to get started with a free account, then click on the Confirm Plan button.
- After Cloudflare has verified our website’s DNS records, click the Continue button.
- Finally, copy the two nameservers that Cloudflare provides and paste them into Notepad, as we will need these later.
Change domain nameservers
- Visit the domain name provider where we registered our website’s domain name.
- Once we have logged in to our domain name registrar, navigate to the settings page of the domain that we want to configure. Select the Custom DNS option, then paste the two Cloudflare nameservers.
Configure Cloudflare SSL settings
- Go back to Cloudflare homepage and click on our website.
- Click on the Crypto icon at the top of the page to configure our Cloudflare SSL settings.
- On the Crypto page, select the Full (Strict) SSL setting if we already have SSL configured on our website. If we want to use Cloudflare’s SSL, choose the Full SSL setting.
Configure Cloudflare caching settings
- Next, click on the Caching icon at the top of the page to configure our caching settings.
- Finally, set our Browser Cache Expiration setting to 1 month or choose Respect Existing Headers if we have already configured caching on our origin server.
Test website performance
- As we have configured Cloudflare CDN, the next step is to check that it is working properly. In the browser, analyze the performance of the site using any online tool. For example, GTMetrix. Enter website’s URL in the search field and click the Analyze button.
- First, under the PageSpeed tab, check that the Leverage browser caching criteria has a high score.
- Next, navigate to the YSlow tab and check that the Use a Content Delivery Network (CDN) and the Add Expires headers criteria are both met.
Combining Cloudflare CDN and SSL
Cloudflare offers three separate settings for handling our website’s encryption with SSL. The three settings are Flexible SSL, Full SSL and Full SSL (Strict).
Full SSL (Strict) provides the highest level of SSL security. However, it requires that we setup SSL on our origin server beforehand.
1. Firstly, flexible SSL
Flexible SSL is the easiest setting for configuring Cloudflare’s SSL with our website. But unfortunately, it does not encrypt the connection between our website’s server and Cloudflare (our website will still show the green padlock).
2. Then, full SSL
Unlike Flexible SSL, the Full SSL setting provides encryption between our server and Cloudflare. The only drawback is that the connection between our server and Cloudflare is not authenticated.
3. Finally, full SSL (Strict)
Out of the three available settings, Full SSL (Strict) provides the highest level of security. Unlike Full SSL, the Full SSL (Strict) setting ensures that the connection between our website’s server and Cloudflare is authenticated with a signed SSL certificate.
[Need help with the setup? We can help you]
Conclusion
In short, our Support Techs introduced to us how to setup Cloudflare CDN for WordPress on Google Cloud.
0 Comments