This happens when SSL is badly configured. Most of the times a header is missing from the reverse proxy config.