Spotlight

Case Study Microsoft

How Microsoft scaled global content delivery

Find out how Microsoft used Gcore to strengthen delivery across regions.

case study ProSieben GNTM app TOPSHOT

How ProSieben scaled GNTM's app TOPSHOT

Explore how ProSieben brought real-time AI portraits to GNTM's audience.

case study Higgsfield

How Higgsfield scaled AI video generation

See how Gcore helped Higgsfield scale with GPUs and Managed Kubernetes.

case study Fawkes Games

How Fawkes Games stopped DDoS attacks

See how Gcore protected gaming servers from massive DDoS threats without disrupting gameplay.

We're hiring

Help build the next chapter of the web

We're not just filling seats. We're building a team that will write the next chapter of the internet.

  1. Home
  2. Blog
  3. How we use SNI in the CDN
Network
Expert insights
Developers

How we use SNI in the CDN

  • March 24, 2021
  • 2 min read
How we use SNI in the CDN

Now, when creating a new CDN resource, the feature is automatically enabled to ensure the use of SNI when accessing the origin. In this article, we’ll tell you what SNI is, what is its use and how to change the name of an SNI host.

What is SNI?

SNI (Server Name Indication) is an extension to the TLS protocol that allows clients to provide a hostname when they contact a server.

Why is SNI needed?

When a client establishes a connection to a server, it refers to a specific IP address. However, it often happens that several different, unrelated websites may be located on the same server. This can happen, for example, if the website is located on a virtual server.

As a result, several different websites have the same IP address. How to understand which one the client needs?

With HTTP, it’s easy. The domain name of the website is usually specified in the first HTTP request. The server easily determines which website the client needs, and connects them.

HTTPS, however, poses a problem. In this case, the client and the server establish a secure connection using TLS before transmitting data over HTTP. But the TLS handshake doesn’t allow the client to indicate which domain it needs.

The problem is that different domains located on the same server may have different SSL certificates. When a secure connection is established, the server must pass the certificate data to the client. And if the server cannot determine which domain certificate is needed, it may transfer the wrong one. In this case, the user’s browser will return an error, and the connection will be terminated.

SNI allows you to tell the server which domain the client is accessing, during the handshake. In this case, the server will be able to transmit the correct SSL certificate, and the connection will be successfully established.

How does it work?

The client sends a request.

  1. The request is directed to the origin server via the CDN.
  2. A secure connection with the server is established using TLS.
  3. When the connection is established, the very first message—client hello—contains the name of the SNI host.
  4. Using this name, the server determines which domain the client is accessing, and transmits the required SSL certificate.
  5. A secure connection is established and HTTP transmission begins.

The SNI hostname is a symbolic designation by which the client communicates and the server determines to which domain the request is addressed.

How do we use SNI in Gcore CDN?

Our global CDN serves a huge number of different websites and web applications. Every day, a lot of requests go through CDN servers to different domains. For everything to work smoothly and for the users of to be able receive content quickly and safely, SNI must be used.

Therefore, the SNI option is automatically enabled when a new resource is created.

A dynamic SNI hostname is set by default. It will always match the Host header. It means that, if you change the Host header, the SNI hostname will change automatically.

However, if for some reason you need the SNI host name not to match the Host header, you can change it to a custom one.

How do I change the SNI host name?

  1. In your personal account, select a resource in the “CDN resources” section.
  2. In the “Settings” tab, click “Show advanced settings”.
  3. The option is located in the “Security” section.
  4. Select a custom SNI hostname and enter the desired name in the field below.
  5. Click “Save changes”.

Deliver content quickly, securely, and error-free with the Gcore CDN.

Try CDN for free

Table of contents

Try Gcore Network

Gcore all-in-one platform: cloud, AI, CDN, security, and other infrastructure services.

Related articles

TG shield logo, global network, and digital dashboards showing data security and performance.
Your service stayed up. The attack still showed up on the bill

Gcore TrafficGate gives Gcore CDN customers visibility into unwanted traffic and controls for bots, request sources, and L7 surges.Imagine a website facing an application-layer (L7) DDoS attack, a flood of web requests intended to over

A digital dashboard displays various data visualizations and the collaboration text 'Gcore x AVEQ'.
When the numbers lie: A CDN diagnostics case study

Real streaming problems rarely show up with a label on them. The broadcaster's ops team is fielding complaints. A dashboard glows with elevated stall counts. Meanwhile the CDN logs look perfectly healthy — latency is nominal, cache hits are

Sifted 100 France & Benelux 2026 announcement with falling confetti and spotlights.
Gcore named in Sifted Top 100 France & Benelux 2026

Gcore has been recognized as one of the top 100 fastest-growing technology startups in France and Benelux by Sifted — one of Europe's leading tech publications. Our inclusion in the B2B SaaS & Cloud Infrastructure category points to ris

World Cup 2026 Streaming Roundup text with a stylized soccer stadium and ball.
How various audiences viewed the World Cup via Gcore

Gcore's content delivery network (CDN) was the backbone behind many broadcasters and live streams at the recent 2026 World Cup, and we observed some interesting stats on how tournament viewing habits differed across the five regions where w

Two founders discuss Melious AI moving its CDN and DNS to Gcore.
Why Melious AI moved its CDN and DNS to Gcore: a founder conversation about sovereign AI in Europe

For many startups, infrastructure decisions are mostly about performance, pricing, and developer experience. For Melious AI, they are also about trust.Melious AI is a German startup building a European AI platform around privacy, transparen

Four e-commerce takeaways from the Berlin Expo

E-commerce is moving fast — and the conversations at E-commerce Berlin Expo reflected just how much has changed in the last few years.Now that the event is over, here are four things I took away from speaking with key players across the ind

Subscribe to our newsletter

Get the latest industry trends, exclusive insights, and Gcore updates delivered straight to your inbox.