Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Email settings URL starts with http NOT httpS
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
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
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.
<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.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™