---
title: "Configure an HTTP connection to a source"
sidebar_label: "Configure an HTTP connection to a source"
description: "How to verify the source certificate, specify the SNI host name, and other instructions"
sidebar_position: 3
---

import Formbricks from '@theme/MDXComponents/Formbricks'

# Configure HTTP connection with the origin

By default, CDN requests content from the origin via HTTPS. This allows you to additionally:

* [verify the origin certificate](#enable-checking-source-certificate) when requesting content from the origin; ;
* [specify the SNI host name](#set-sni-host-name) so that the source provides content for the required domain if multiple domains can point to one IP address. SNI (Server Name Indication) is the host name that is passed in a TLS request.

If the content origin does not support encryption, you can [disable the use of HTTPS](#disable-https). We do not recommend disabling HTTPS — this reduces security and increases the risk of MITM attacks. During a MITM attack, attackers can intercept logins, modify page content, and inject malicious code. If you disable the use of HTTPS, origin certificate verification and SNI hostname specification will not be available.

## Enable origin certificate verification \{#enable-checking-source-certificate}

Verification confirms that the certificate:

* is issued by a trusted certification authority (CA);
* is valid;
* matches the origin domains;
* matches the SNI hostname, if it is [specified](#set-sni-host-name).

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 → the **Origin**.

3. In the **HTTP settings for origins** block, select the **Verify origin certificate**.

4. Click **Apply**. While settings are being applied, the CDN resource enters the `PROCESSING` status. You cannot apply other settings during this time. Settings take effect when the CDN resource transitions to `ACTIVE`.

## Specify the SNI hostname \{#set-sni-host-name}

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 → **Origin**.

3. In the **HTTP settings for origins** block, select the **Specify SNI hostname**.

4. Enter the SNI hostname—a domain without a protocol, for example, `example.com`. This value will be passed in the SNI header when establishing a TLS connection.

5. Click **Apply**. While settings are being applied, the CDN resource enters the `PROCESSING` status. You cannot apply other settings during this time. Settings take effect when the CDN resource transitions to `ACTIVE`.

## Disable the use of HTTPS \{#disable-https}

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 → **Origin**.

3. In the **HTTP settings for origins** block, clear the **Use HTTPS when requesting content from origins**.

4. Click **Apply**. While settings are being applied, the CDN resource enters the `PROCESSING` status. You cannot apply other settings during this time. Settings take effect when the CDN resource transitions to `ACTIVE`.

<Formbricks />
