Not possible to enable Secure Pages with Nginx

Created on 7 April 2014, over 10 years ago
Updated 26 November 2024, 27 days ago

I have Secure Pages 7.x-1.0-beta2 installed on two Drupal sites running on Nginx. I applied the 2 patches listed on the project page. I have also tried applying the suggestions listed in this article:

http://www.metaltoad.com/blog/running-drupal-secure-pages-behind-proxy

1. settings.php

if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) &&
  $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
  $_SERVER['HTTPS'] = 'on';
}

2. nginx vhost file:
location / {proxy_set_header X-Forwarded-Proto $scheme;}

The option remains greyed out even when I visit the link to use if the test has failed. I have Secure Pages enabled on three other Drupal sites that are running on Apache no problem. Am I missing something?

πŸ’¬ Support request
Status

Closed: outdated

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States Coupon Code Swap

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.

  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    I'm closing it because the issue was created a long time ago without any further steps.

    if you still need it then raise a new one.
    thanks

Production build 0.71.5 2024