Added support for http-header HTTP_X_FORWARDED_PROTOCOL from MrFriday frontend server.