Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
All solutions
    • All solutions for Cloud CDN
    • Resolving the `no such bucket` and `no such key` errors when uploading objects from Cloud CDN
    • Resolving the `CNAME already exists` error
    • Resolving the `You cannot enable redirect HTTP to HTTPS when HTTPS is disabled` error
    • Cloud CDN returns only one IP address
    • How to restrict Object Storage bucket access to a specific Cloud CDN IP address range

In this article:

  • Issue description
  • Solution
  • If the issue persists
  1. Cloud CDN
  2. Resolving 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 December 17, 2025
  • Issue description
  • Solution
  • If the issue persists

Issue descriptionIssue description

When trying to create a CDN resource, you get 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 HTTP to HTTPS redirects, you need to set up HTTPS for your domain. Namely, you need to create or add an existing certificate for the domain name to use for content distribution via CDN.

Add the certificate using Certificate Manager.

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

Note

Our CDN host provider, G-Core Labs, has changed its 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 did not help, create a support ticket. When creating a request, please attach a screenshot of your settings page.

We also recommend that you create a resource with HTTPS and a certificate request enabled. Once HTTPS is set up, enable redirects from HTTP to HTTPS.

Was the article helpful?

Previous
Resolving the `CNAME already exists` error
Next
Cloud CDN returns only one IP address
© 2026 Direct Cursus Technology L.L.C.