Monday, May 27, 2013

Drupal Base URL HTTPS support

Posted by codycraven on September 21, 2010 at 7:00pm

Base URL will begin with https:// if the current page is being accessed through the HTTPS protocol. This depends on the availability of $_SERVER['HTTPS'] which may not be available if a reverse proxy or load balancer is in use.

To make PHP $_SERVER['HTTPS'] available in Nginx, see:
http://blog.ijun.org/2013/05/getting-php-https-detection-working-in.html

Reference:
http://api.drupal.org/api/drupal/developer!globals.php/global/base_url/6

No comments: