Fork me on GitHub
Subscribe 2

Ticket #324 (fixed bug)

Check custom headers when detecting http/https

  • Created: 2011-02-25 22:44:50
  • Reported by: Reines
  • Assigned to: Reines
  • Milestone: 1.4.5
  • Component: code
  • Priority: normal

When using FluxBB behind a reverse proxy which serves https FluxBB can detect the protocol wrongly.

See: https://fluxbb.org/forums/viewtopic.php … 798#p38798 & http://drupal.org/node/313145

History

Reines 2011-02-26 11:42:42

Commit c1ed724 to fluxbb master

Adding support for HTTP_X_FORWARDED_PROTO when checking which protocol we are currently using. #324

Visman 2011-02-26 11:50:48

     // Make sure we are using the correct protocol
     $protocol = (!isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) == 'off') ? 'http://' : 'https://';

delete the lines!?

Reines 2011-02-26 11:52:37

Too slow tongue

Franz 2011-03-22 17:29:37

  • Owner set to Reines.