By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
Cloudbooklet Logo
  • Artificial Intelligence
  • Applications
  • Linux
Notification

Free AI Image Generator

AI Tools
Cloudbooklet AICloudbooklet AI
Search
AI Tools
  • Artificial Intelligence
  • Applications
  • Google Cloud
  • Compute Engine
  • Linux

Top Stories

Explore the latest updated news!
Turnitin Ai

How to Use Turnitin AI Writing Detection Checker Tool

Spotify Wrapped

Spotify Wrapped 2023: Everything You Need to Know

Amazon Titan

How Amazon Titan Image Generator Can Revolutionize Generative AI

Follow US
  • About
  • Contact
  • Disclaimer
  • Privacy Policy
Cloudbooklet © 2023 All rights reserved.

Home » Google Cloud » How to configure Google Cloud CDN for External Websites

Google CloudLoad Balancing

How to configure Google Cloud CDN for External Websites

Last updated: 2021/11/23 at 8:55 AM
By Cloudbooklet
Setup Google Cloud Cdn For External Website
SHARE
Readers like you help support Cloudbooklet. When you make a purchase using links on our site, we may earn an affiliate commission.

In this guide you are going to learn how to configure Google Cloud CDN for external websites which is not hosted on Google cloud and have a custom origin server.

Here we will configure a HTTPS load balancer and setup an external backend service with Network Endpoint Group (NEG) which connects to your server.

Table of Contents
PrerequisitesCreate a Network Endpoint GroupCreate HTTP(S) Load balancerBackend ConfigurationFrontend ConfigurationPoint domain to Load balancerConclusion

Prerequisites

Take note of the following.

  • Your external server IP.
  • Your domain name.

Create a Network Endpoint Group

Login to your Google Cloud console and navigate to Compute Engine >> Network Endpoint Groups.

Click Create network endpoint group.

Enter name for your group.

In Network endpoint group type select Internet

In the Default port enter 80. If your website listens on some other port you can add that.

In New network endpoint select IP and Port in Add through and enter the IP of your external or custom origin server.

Click Create.

Create Network Endpoint Group
How to configure Google Cloud CDN for External Websites 1

Create HTTP(S) Load balancer

Navigate to Networking >> Network Services >> Load Balancing.

Click Create Load balancer.

Click Start Cofiguration in HTTP(S) Load Balancing

Choose load balancer type as From Internet to my VMs in Internet facing and choose Classic HTTP(S) Load Balancer.

Click Continue.

Choose Load Balancer Type
How to configure Google Cloud CDN for External Websites 2

Enter name for your Load balancer.

Backend Configuration

In the Backend Configuration click Create a Backend Service.

Enter name for your backend.

In Backend type choose Internet network endpoint group

In the Backend, select the NEG you have created earlier.

Check Enable Cloud CDN.

Click Advanced Configurations.

In Custom request headers click Add header.

Enter Header name as Host and Header value as your domain name.

Click Create.

Frontend Configuration

In the Frontend Configuration create two forwarding rules for HTTP on port 80 and HTTPS on port 443.

In the New Frontend IP and port

Select Protocol as HTTP

In the IP address select Create IP address and add new IP address.

Click Done.

Click Add Frontend IP and Port to add a new HTTPS listener.

Select Protocol as HTTPS

In the IP address select the IP address you created before.

In the Certificate click Create new certificate.

Enter name for your certificate.

In Create mode choose Create Google-managed certificate.

In the Domains you can add your domain names.

Click Create.

You can choose HTTP to HTTPS redirect if needed.

Now finally you can click create to create the load balancer.

Point domain to Load balancer

Now go to your DNS manager and change the A record with the IP address you just created in Load Balancer to point your domain to load balancer.

Once the domain pointing is done the propagation might take 48 hrs to complete. Once the propagation is completed Google will install SSL.

Once SSL is installed the load balancer will act as CDN and route all your traffic.

That’s it.

Conclusion

Now you have learned how to configure Google Cloud CDN with HTTPS load balancer for external custom origin website..

Thanks for your time. If you face any problem or any feedback, please leave a comment below.

TAGGED: Load Balancing
Share This Article
Facebook Twitter Whatsapp Whatsapp LinkedIn Reddit Telegram Copy Link Print
Share
2 Reviews 2 Reviews
  • Avatar Of Vh ChaudharyVH Chaudhary says:

    Invalid value for field ‘resource.IPAddress’: ‘projects/watchful-pier-390606/global/addresses/pys-frontend-ipv4’. Specified IP address is in-use and would result in a conflict.

    Reply
  • Avatar Of Hasanhasan says:

    Hi,

    first of all thank you very much for this post. I search in google Documentation and didnt find short quickly like yours. I have an website antalya-travel.com. i would use on this domain cdn from google.

    But if i access to the url the website shows me “ERR_SSL_VERSION_OR_CIPHER_MISMATCH”
    what i am doing wrong ?

    I will be happy if you can help me.

    Reply

Leave a review Cancel reply

Your email address will not be published. Required fields are marked *

Please select a rating!

Popular

Amazon Q Ai
How Amazon Q AI Assistant Can Boost Your AWS Productivity
Artificial Intelligence
Chatgpt Voice Chat
How to Use ChatGPT Voice Chat Feature: Tips and Tricks
Artificial Intelligence
Nsfw Prompts
5 Best NSFW Prompts Generator – NSFW AI Art
Artificial Intelligence
Grok Ai Vs Chatgpt
Grok AI vs ChatGPT: A Detailed Review of Two Leading Chatbot Platforms
Artificial Intelligence
- Advertisement -

Subscribe Now

loader

Subscribe to our mailing list to receives daily updates!

Email Address*

Name

Related Stories

Uncover the stories that related to the post!
How To Install Git On Ubuntu 20.04
Google CloudLinux

How to Install Git on Linux

Vector Image
Data ScienceGoogle Cloud

DataStax Enhances Astra DB on Google Cloud with Vector Search Capability

How To Setup Ssh Keys On Ubuntu
Google CloudAWS

How to Setup SSH Keys on Ubuntu 20.04

Draggan Ai Editing Tool Install And Use Draggan Photo Editor
Artificial IntelligenceDeep LearningGoogle Cloud

DragGAN AI Editing Tool Install and Use DragGAN Photo Editor

Cloudbooklet Logo
  • Categories:
  • Artificial Intelligence
  • Applications
  • Google Cloud

Quick Links

  • About
  • Contact
  • Disclaimer
  • Privacy Policy
Cloudbooklet © 2023 All rights reserved.
Welcome Back!

Sign in to your account

Lost your password?