---
title: "Configure HTTP connection to a CDN resource"
sidebar_label: "Configure HTTP connection to the resource"
description: "How to enable HTTP/3, redirect from HTTP to HTTPS, and other instructions"
sidebar_position: 9
---

import Formbricks from '@theme/MDXComponents/Formbricks'
import {CustomTable} from '@selectel/docux/components'

# Configure HTTP connection to a CDN resource

You can configure which protocols users will use to connect to a CDN resource.

The HTTP/2 protocol is enabled by default; it speeds up content loading by compressing headers.

You can also:

* [enable HTTP/3 connection](#enable-http3), for example, if your content is only available in a mobile app or your users have an unstable internet connection;
* [enable HTTPS-only connection](#enable-only-https) if you want to block HTTP connections;
* [redirect from HTTP to HTTPS](#redirect-http-to-https);
* [disable HTTP/2 connection](#disable-http2) in case of compatibility issues, for example, if the content source does not support HTTP/2.

You can use HTTP/2, HTTP/3, and HTTPS-only connections simultaneously. The content will be available via HTTPS, while both HTTP/2 and HTTP/3 protocol versions will be supported.

## Enable HTTP/3 connection \{#enable-http3}

1. In the [control panel](https://my.selectel.ru/cdn-v3), on the top menu, click **Products** and select **CDN**.
2. In the **CDN Resources** section, open the CDN resource page → **General**.
3. Select the **Use HTTP3** check box.
4. Click **Apply**. While settings are being applied, the CDN resource enters the `PROCESSING` status. You cannot apply other settings at this time. Settings take effect when the CDN resource transitions to `ACTIVE`.

## Enable HTTPS-only connection \{#enable-only-https}

You cannot simultaneously enable HTTPS-only connection and [redirect from HTTP to HTTPS](#redirect-http-to-https).

If you are using a [custom domain](/cdn/resources/domains.mdx#personal-domain), make sure it is available via HTTPS. If the domain is unavailable, check the [TLS (SSL) certificate](/cdn/resources/tls-ssl-certificates.mdx) of the CDN resource.

When this option is enabled, users connecting to the CDN resource via HTTP will receive a `403 Forbidden` access error, and content will not be delivered to them.

1. In the [control panel](https://my.selectel.ru/cdn-v3), on the top menu, click **Products** and select **CDN**.
2. In the **CDN Resources** section, open the CDN resource page → **General**.
3. Select the **Use only HTTPS** check box.
4. Click **Apply**. While settings are being applied, the CDN resource enters the `PROCESSING` status. You cannot apply other settings at this time. Settings take effect when the CDN resource transitions to `ACTIVE`.

## Redirect from HTTP to HTTPS \{#redirect-http-to-https}

You cannot simultaneously redirect from HTTP to HTTPS and [enable HTTPS-only connection](#enable-only-https).

If you are using a [custom domain](/cdn/resources/domains.mdx#personal-domain), make sure it is available via HTTPS. If the domain is unavailable, check the [TLS (SSL) certificate](/cdn/resources/tls-ssl-certificates.mdx) of the CDN resource.

Upon redirection, all HTTP requests will receive a `301 Moved Permanently` response specifying the HTTPS address. Content will be delivered.

1. In the [control panel](https://my.selectel.ru/cdn-v3), on the top menu, click **Products** and select **CDN**.
2. In the **CDN Resources** section, open the CDN resource page → **General**.
3. Select the **Redirect to HTTPS** check box.
4. Click **Apply**. While settings are being applied, the CDN resource enters the `PROCESSING` status. You cannot apply other settings at this time. Settings take effect when the CDN resource transitions to `ACTIVE`.

## Disable HTTP/2 connection \{#disable-http2}

HTTP/2 protocol usage is enabled by default.

If HTTP/2 is disabled, connections will be established using the HTTP/1.1 protocol.

1. In the [control panel](https://my.selectel.ru/cdn-v3), on the top menu, click **Products** and select **CDN**.
2. In the **CDN Resources** section, open the CDN resource page → **General**.
3. Clear the **Use HTTP2** check box.
4. Click **Apply**. While settings are being applied, the CDN resource enters the `PROCESSING` status. You cannot apply other settings at this time. Settings take effect when the CDN resource transitions to `ACTIVE`.

<Formbricks />
