RE: Liferay Redirection Loop after Login

Jamie Sammons, modified 2 Years ago. New Member Posts: 7 Join Date: 4/4/23 Recent Posts

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.

Jamie Sammons, modified 2 Years ago. New Member Posts: 7 Join Date: 4/4/23 Recent Posts

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