Skip to content
This repository was archived by the owner on Jul 30, 2019. It is now read-only.
This repository was archived by the owner on Jul 30, 2019. It is now read-only.

OpenShift Online v2 - Tech FAQs - redirect to HTTPS - wrong variable #508

Description

@denishowe

When the Cloudflare CDN converts requests from HTTPS to HTTP, it passes the original scheme in the CF-Visitor header, not X-Forwarded-Proto as specified in The FAQ

To redirect requests that were originally HTTP to HTTPS, the rewrite rules need to be:

RewriteCond %{HTTP:CF-Visitor} !https
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

This works for FOLDOC.

The same presumably applies for JBoss #449.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions