配置 Liferay 使用 HTTPS

Zam*_*ues 1 apache https tomcat6 liferay-6

我们已经开发出一种Application Portal利用Liferay捆绑tomcat。使用Apache httpd前端访问应用程序门户。

当我们从 迁移HTTPHTTPS. 对于HTTPS,最初我们为 生成了自签名证书Apache httpd。但是我们可以看到只有主页加载了HTTPS,其余的页面/链接都在使用HTTP。在调查中,我们注意到Site Pages settingscontrol panelfor 下Liferay,'Friendly URL hashttp hard-coded in the URL . We need toLiferay to useHTTPS instead ofHTTP`

怎么配置一样。

Paw*_*ski 5

那是因为 Liferay 生成的所有链接默认使用 http 协议。要改变这一点,在你的 portal-ext.properties 中设置以下属性就足够了:

#
# Set the preferred protocol.
#
web.server.protocol=https
Run Code Online (Sandbox Code Playgroud)

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