Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
GERALD ROMERO
Redirect loop when using private virtual host for community
October 10, 2011 10:37 PM
Answer

GERALD ROMERO

Rank: New Member

Posts: 4

Join Date: October 4, 2011

Recent Posts

Whenever I attempt to use a virtual host name for the private pages of a community, navigation to the pages results in an redirect loop message.

Basic Liferay 6 with Tomcat package configured to use MySQL database.

Steps taken...
Portal already created and working well...
Create a community.
Create private pages. (Documents, Calendar, etc. template)
Manage pages, configure Settings.
Set Private Virtual Host to mysub.mydom.com:8080
Friendly URL is default.
(Yes DNS is configured correctly. Internal access only.)
Navigate to mysub.mydom.com which results in redirect loop message from browser.

This webpage has a redirect loop
The webpage at http://mysub.mydom.com:8080/home?p_p_state=maximized&p_p_mode=view&saveLastPath=0&_58_struts_action=%2Flogin%2Flogin&p_p_id=58&p_p_lifecycle=0&_58_redirect=%2Fhome%3Fp_p_state%3Dmaximized%26p_p_mode%3Dview%26saveLastPath%3D0%26_58_struts_action%3D%252Flogin%252Flogin%26p_p_id%3D58%26p_p_lifecycle%3D0%26_58_redirect%3D%252Fhome%253Fp_p_state%253Dmaximized%2526p_p_mode%253Dview%2526saveLastPath%253D0%2526_58_struts_action%253D%25252Flogin%25252Flogin%2526p_p_id%253D58%2526p_p_lifecycle%253D0%2526_58_redirect%253D%25252Fhome%25253Fp_p_state%25253Dmaximized...

Google hasn't turned up anything intelligent. Can anyone provide any insight?
Ravi Kumar Gupta
RE: Redirect loop when using private virtual host for community
October 10, 2011 11:13 PM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1041

Join Date: June 23, 2009

Recent Posts

I saw this behavior while using OpenSSO. Well it was cookie causing this to happen.
Is this same for all the browsers?

Can you please try Clearing all cache, cookies from the browser and if that also doesnt work shutdown tomcat, delete the temp, work folder from tomcat and restart... don't know how much help this would be but try and see..
GERALD ROMERO
RE: Redirect loop when using private virtual host for community
October 10, 2011 11:18 PM
Answer

GERALD ROMERO

Rank: New Member

Posts: 4

Join Date: October 4, 2011

Recent Posts

Yea I tried clearing cache. Does the same in Firefox, Chrome and Safari. Doesn't appear to be a cookie or cache issue.
GERALD ROMERO
RE: Redirect loop when using private virtual host for community
October 11, 2011 12:32 AM
Answer

GERALD ROMERO

Rank: New Member

Posts: 4

Join Date: October 4, 2011

Recent Posts

Upon further experimentation, it appears that there must be at least one public page created within the community in order for the virtual host to work for the private pages. Might be something related to sign-in function. I'm still a newbie so not sure but seems like a logical guess. Unless someone can tell me this is not how Liferay is supposed to function, I will consider the question answered.

Thanks.
Mauro Almeida
RE: Redirect loop when using private virtual host for community
May 15, 2012 4:37 AM
Answer

Mauro Almeida

Rank: Junior Member

Posts: 28

Join Date: March 15, 2012

Recent Posts

Hi Ravi

Ravi Kumar Gupta:
I saw this behavior while using OpenSSO. Well it was cookie causing this to happen.


I'm trying to integrate openAM (old openSSO) with Liferay 6.1 CE and I believe I'm having this error. Do you know what it's causing it? How can I fix this?

Thanks in advanced,
Mauro Almeida