openenergymonitor/emoncms3 — pull request #69 by mattwire (2012-08-03 14:07:58+00:00)
Title: Add support for hosting behind HTTPS proxy

This adds support for the X_FORWARDED_PROTO which can be sent by proxies.

In my case I host a version of emoncms on my own server which is accessed from the internet via a https proxy:

internet --> [HTTPS] --> reverse proxy (nginx) --> [HTTP] --> emoncms (apache).

Without this header it is impossible for emoncms to detect that it should be returning https URLs.