Message Boards

Redirection from Liferay7 to Liferay6

Chintamani Bhat, modified 7 Years ago.

Redirection from Liferay7 to Liferay6

New Member Posts: 6 Join Date: 1/5/17 Recent Posts
Hi,

We recently upgraded from Liferay 6(L6 - version 6.0.6) to Liferay 7(L7). The migration was partial, in the sense that 50% of the applications were moved from L6 to L7. The remaining portlets are part of phase 2 of migration. We are in a situation where in we want to redirect certain portlets from L7 to L6-which is on a different machine. We tried redirecting from L7 to L6 using Apache on top of Liferay through Rewrite rules. However, Apache instead of redirecting to L6, redirects back to local L7. This apache server is configured on the machine hosting L7.
Is there a way of redirecting portlets from L7 to L6? Is Apache redirection the proper way to go about it? Or is there some alternative to this. We have been stuck on this redirection issue since two weeks without any success.
The following is the virtual host configuration in Apache:

*x.x.x.x = IP of machine hosting L7*
*y.y.y.y = IP of machine hosting L6*

<VirtualHost *:80>
ServerName x.x.x.x
ProxyPreserveHost On
RewriteEngine On

#Rule to redirect xyz portlet from L7 to xyz portlet on L6
RewriteRule ^/?group/abc/xyz(.*) http://y.y.y.y:9000/group/abc/xyz$1 [P]
ProxyPassReverse /group/abc/xyz/ http://y.y.y.y:9000/group/abc/xyz/

ProxyPass / http://x.x.x.x:8080/ #To redirect default requests to liferay tomcat(L7)
ProxyPassReverse / http://x.x.x.x:8080/
</VirtualHost>

Are we missing out something in the above Apache virtualhost configuration? Or does Liferay not allow internal private portlets to be redirected to Liferay hosted on different machine. Also, we are using CAS for login on both L7 and L6.
thumbnail
David H Nebinger, modified 7 Years ago.

RE: Redirection from Liferay7 to Liferay6

Liferay Legend Posts: 14919 Join Date: 9/2/06 Recent Posts
I don't know that I'd go this route.

Have you tried WSRP? It's kind of designed to do what you're looking for...
Chintamani Bhat, modified 7 Years ago.

RE: Redirection from Liferay7 to Liferay6

New Member Posts: 6 Join Date: 1/5/17 Recent Posts
Thank you David for the suggestion. I explored WSRP and we will try to implement the same. I will revert with the progress soon.
Chintamani Bhat, modified 7 Years ago.

RE: Redirection from Liferay7 to Liferay6

New Member Posts: 6 Join Date: 1/5/17 Recent Posts
Hi David,

I am unable to find WSRP plugin for Liferay 7 from the marketplace. The latest WSRP shows as valid for version 6.2+. However upon deploying the same, I get an error stating "WSRP does not support this version of Liferay."
Any help in this regard will be much appreciated.
Chintamani Bhat, modified 7 Years ago.

RE: Redirection from Liferay7 to Liferay6

New Member Posts: 6 Join Date: 1/5/17 Recent Posts
Yes David, I checked that before I began with the implementation.
I could download a .war file for Liferay 6.
However I could not find any war file for deployment on Liferay 7, neither could I find installation in the market place for L7.

Any link with the downloadable war or for direct installation would be really helpful.
Have been stuck on this redirection piece for a fair amount of time now emoticon

I really appreciate you taking out time for my queries emoticon
thumbnail
David H Nebinger, modified 7 Years ago.

RE: Redirection from Liferay7 to Liferay6

Liferay Legend Posts: 14919 Join Date: 9/2/06 Recent Posts
Yeah, I just checked, I don't see a WSRP portlet for LR7 even though dev.liferay.com says there is one emoticon
Chintamani Bhat, modified 7 Years ago.

RE: Redirection from Liferay7 to Liferay6

New Member Posts: 6 Join Date: 1/5/17 Recent Posts
In this case, is there an alternative you can suggest? Because I seem to be totally blank in this regard right now :/

Also, I wonder where were the screenshots taken from in the tutorial for WSRP in LR7. I am at sea w.r.t that. Does it have something to do with the plugin not yet released in the public domain?