将以下这些行添加到该虚拟主机的apache配置中可以解决此问题:
Header add X-Forwarded-Proto "https" RequestHeader add X-Forwarded-Proto "https"