Zama Ques
Zama Ques

Reputation: 1544

Configuring Liferay to use HTTPS

We have developed a Application Portal using Liferay bundled with tomcat . Application Portal is accessed using Apache httpd as front-end.

The issue started for us when we migrated from HTTP to HTTPS . For HTTPS , initially we generated self signed certificate for Apache httpd . But we can see only Home Page is loaded with HTTPS , rest of the pages/links are using HTTP only. On investigating , we noted that under Site Pages settings in control panel for Liferay , 'Friendly URLhashttphard-coded in the URL . We need toLiferayto useHTTPSinstead ofHTTP`

How to configure the same.

Upvotes: 2

Views: 5225

Answers (1)

Pawel Kruszewski
Pawel Kruszewski

Reputation: 569

That's because all links generated with Liferay use http protocol by default. To change this it's enough to set following property in your portal-ext.properties:

#
# Set the preferred protocol.
#
web.server.protocol=https

Article: https://www.permeance.com.au/web/tim.telcik/home/-/blogs/how-do-i-configure-apache-httpd-and-liferay-portal-to-use-ssl

Upvotes: 6

Related Questions