Adding these lines to the apache config for this vhost fixed it:
Header add X-Forwarded-Proto "https"
RequestHeader add X-Forwarded-Proto "https"
Рассказываю сложные вещи простыми словами
Adding these lines to the apache config for this vhost fixed it:
Header add X-Forwarded-Proto "https"
RequestHeader add X-Forwarded-Proto "https"