Redirect loop using Cloudflare and CDN module since #2994526 (version 3.3) when serving the entire site from CloudFront

Created on 17 June 2021, over 3 years ago
Updated 19 May 2023, over 1 year ago

Problem/Motivation

Hello,

I recently did an upgrade from the Drupal CDN module from 3.2 to the 3.5 version, and everything works fine in my local and test environments, but when I deploy it to the live environment (i.e: www.example.com) it causes a loop redirect problem (ERR_TOO_MANY_REDIRECTS)

Steps to reproduce

My current settings in my cdn.settings.yml are as below (I changed my website.com by example.com):

langcode: de
status: true
mapping:
  type: simple
  domain: www.example.com
  conditions:
    not:
      extensions:
        - css
        - js
farfuture:
  status: true
_core:
  default_config_hash: [hash]
stream_wrappers:
  - public
scheme: //

In the Cloudflare DNS settings I currently have:

SSL Full configured in the CloudFlare.

A records
example.com
222.222.222.222
TTL Auto
with proxy

A records
www
222.222.222.222
TTL Auto
with proxy

It is strange because these settings are the same as used in the 3.2 CDN module and there this works fine.

πŸ› Bug report
Status

Postponed: needs info

Version

4.0

Component

Code

Created by

πŸ‡§πŸ‡·Brazil fkatsukawa SΓ£o Paulo, πŸ‡§πŸ‡·

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024