Email settings URL starts with http NOT httpS

thumbnail
Nick Burton, modified 4 Years ago. Junior Member Posts: 51 Join Date: 7/13/14 Recent Posts
Hello,
When my new users get a Password Reset Notification email, the [$PORTAL_URL$] starts with https://
GREAT!!
In all other emails configured within the Instance -> Email settings the [$PORTAL_URL$] starts with http:// (NOT httpS)
I have https and my certificate configured using Apache.

Q:  How do I tell Liferay that all URLs to the portal start with httpS?
Liferay Version is : Liferay 7.3 GA4
​​​​​​​
​​​​​​​Thanks in advance.
Nick
thumbnail
Christoph Rabel, modified 4 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
I think the scheme is determined by checking if the connector is secure. So, you would need to set the secure flag in the tomcat connector for this to work correctly.
    <Connector port="8080" protocol="HTTP/1.1"
               secure="true" scheme="https"
               redirectPort="8443" URIEncoding="UTF-8" />
Please note that this doesn't mean that your connector will actually use https and require a certificate. It will still serve requests using http. These settings are there for cases like this, when you have a reverse proxy in front of the tomcat.