Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
I cannot sign in using domain name but it works fine when using IP address
I have a Liferay 6.2 instance that can sign in to it using its IP
address. But when I want to sign in using its domain, after entering
credentials and clicking Sign In button, the Sign In page appears
again without any error message nither on UI nor on the Tomcat log.
Based on the Tomcat log, the background sign in process works well,
but it doesn't redirect to the organization page of signed in user. I
traced the redirects and saw that after Sign In page, it is redirected
to /c/portal_layout, but in a successful sign-in process (when I
browse by IP), it is redirected to an organization page. The other
difference I noticed was setting up GUEST_LANGUAGE_ID cookie during
the problematic sign-in. In successful sign-in, this cookie is not
set. Interestingly, In the problematic scenario following cookies are
set too:
LOGIN
PASSWORD
SCREEN_NAME
Moreover,
if I enter the wrong credentials, no error messages are displayed and
the sign-in page appears again.
When odd things like this happen, I often want to check if there's an HTTP server in front of the app server that might be misconfigured, not sending all traffic to the app server the way it should.
Thank you David for your quick response.
Yes. There is an HAproxy server in front of Tomcat. I'll work on it.