留言板

Liferay Apache https

Charles Richard,修改在12 年前。

Liferay Apache https

New Member 帖子: 3 加入日期: 11-11-28 最近的帖子
Hi,

I'm having a strange issue and it's probably due to me not understanding completely what's happening but I'm hoping somebody can put me on the right path.

We have a liferay 6.0.6 installation and using Apache as a frontend. When this setup is installed on another server (through an automated Hudson job), we are able to login through Liferay using https and using the Apache setting "JkExtractSSL Off". I realize this should typically be on but we also require Apache to directly be in front of a glassfish webservice and having "JkExtractssl off" is the only way this will work. Nonetheless, this works fine on most environments.

However, I have been working on 2 servers to setup a liferay/mysql cluster and for some reason now, after having setup liferay and mysql for the cluster which didn't work as the https login through apache wasn't working. Just seems like liferay is not able to keep any session information. I've tried reverting all cluster changes but liferay still won't login using https. I've even tried rebooting the server in case something was being stored in memory but still no go. What confuses me is that If i use the same hudson build to build to another environment, the https login will work just fine. I've tried a new hudson build on one of the cluster servers but it still won't work. If i turn "Jkextractssl on", then it works but this is not what I'm looking for as then the glassfish webservice that's fronted with Apache won't work anymore.

Any hints or opinions are appreciated!

Thanks!
Charles
Charles Richard,修改在12 年前。

RE: Liferay Apache https

New Member 帖子: 3 加入日期: 11-11-28 最近的帖子
I should add that we added this to the portal-ext.properties in order for the https login to work with "JkExtractSSL off":

# Set this to true to ensure users login with https.
#
company.security.auth.requires.https=true

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

It almost seems like my cluster server installation is not picking up that setting in the portal-ext.properties even though that setting is there.

Cheers,
Charles
Charles Richard,修改在12 年前。

RE: Liferay Apache https

New Member 帖子: 3 加入日期: 11-11-28 最近的帖子
Looks like this was all caused by liferay picking up a backup of a portal-ext.properties i never expected would get picked up. It pays to look at the first few lines of your log file to see which portal-ext gets loaded emoticon

Cheers!