Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
All solutions
    • All solutions for Cloud CDN
    • Fixing the "no such bucket" and "no such key" errors when uploading objects from CDN
    • Fixing the "CNAME already exists" error
    • Fixing the "You cannot enable redirect HTTP to HTTPS when HTTPS is disabled" error
    • Restricting access to an Object Storage bucket using an IP range from Cloud CDN

In this article:

  • Issue description
  • Solution
  • If the issue persists
  1. Cloud CDN
  2. Fixing the "You cannot enable redirect HTTP to HTTPS when HTTPS is disabled" error

Fixing the "You cannot enable redirect HTTP to HTTPS when HTTPS is disabled" error

Written by
Yandex Cloud
Updated at November 27, 2023
  • Issue description
  • Solution
  • If the issue persists

Issue descriptionIssue description

When trying to create a CDN resource, you see this error:

status": 400,
"message": "error: general api error: {"options":{"redirect_http_to_https":{"enabled":["You cannot enable redirect HTTP to HTTPS when HTTPS is disabled. Please enable HTTPS and add SSL certificate first"]}}}",
"code": "GATEWAY_REQUEST_ERROR",
"title": "Error",
"description": "error: general api error: {"options":{"redirect_http_to_https":{"enabled":["You cannot enable redirect HTTP to HTTPS when HTTPS is disabled. Please enable HTTPS and add SSL certificate first"]}}}",
"details": {
"grpcCode": 3
}

SolutionSolution

Before enabling the HTTP to HTTPS redirect option, you need to set up HTTPS for the domain. Namely, you need to create or add an existing certificate for the domain name to be used for content distribution via CDN.

The certificate is added in Certificate Manager.

In the CDN creation dialog, specify the certificate stored in Certificate Manager. After this, you can enable request redirect from HTTP to HTTPS.

Note

Our CDN host partner provider, G-Core Labs, has changed the logic of CDN creation. Now, users are required to enable HTTPS on their sources; for this reason, we changed handling of resource creation on our side.

If the issue persistsIf the issue persists

If the above actions didn't help, create a request for support.
When creating a request, please attach a screenshot of your settings page.

Please also create a resource with HTTPS and a certificate request enabled. Once HTTPS is set up, activate the redirect from HTTP to HTTPS.

Was the article helpful?

Previous
Fixing the "CNAME already exists" error
Next
Restricting access to an Object Storage bucket using an IP range from Cloud CDN
© 2025 Direct Cursus Technology L.L.C.