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
RE: Liferay Redirection Loop after Login
Hi,
I am now got my Liferaty Portal installation to work but after login it coming to go redirection loop. See the video at link below:
https://youtu.be/-9oIQ8tdicU
In ./conf/server.xml haves this configration:
<Connector port="8189" protocol="org.apache.coyote.http11.Http11NioProtocol"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"
scheme="https" secure="true"
proxyName="liferay.i4ware.fi" proxyPort="443" />
And in Apache SSL VirtualHost file haves this:
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8189/
ProxyPassReverse / http://127.0.0.1:8189/
And is Apache Non-SSL VirtualHost file have this:
#– rewrite the standard page to the ssl page
<IfModule mod_rewrite.c>
RewriteEngine on
####
# Redirect only access to repo and Polarion to the
# SSL port. The other stuff is not sensitive and can
# remain on the old port.
####
RewriteRule (.*) https://%{HTTP_HOST} [NC,L]
</IfModule>
My Virtual Private Server OS is Ubuntu 20.04 LTS.
I found a solution for this with ChatGPT AI's help. I just needed to add these lines to file portal-ext.properties
# Proxy configuration
web.server.protocol=https
web.server.http.port=80
web.server.https.port=443
web.server.host=liferay.i4ware.fi