LPS-43714 Control Panel UI broken with Apache, SSL and certain properties

Re-sending after Brian's comment on https://github.com/brianchandotcom/liferay-portal/pull/16350