RE: Search Results Pagination: how to replace localhost with the final doma

Pietro Pagani, modified 4 Years ago. New Member Posts: 7 Join Date: 10/8/19 Recent Posts

Hi,

I have created a Search Results page and configured it in order to paginate the results according to the official documentation https://help.liferay.com/hc/en-us/articles/360017894572-Display-Settings

The problem is that when I click on the pagination links (to move back and forward) or I try to change the number of results to be shown in each page, the link is pointing to localhost and not to the right portal domain.

I don't know if this could be useful but I have a web server in front of my portal and I have properly configured the following parameters:

  • web.server.host
  • web.server.http.port
  • web.server.https.port
  • web.server.protocol

Is there any configuration I'm missing?

 

Regards,

Pietro

Pietro Pagani, modified 4 Years ago. New Member Posts: 7 Join Date: 10/8/19 Recent Posts

Hi, 

finally I fixed the issue which was not related with Liferay but with some configuration on FE Web Server.

In case other encounter the same problem...I have enabled "ProxyPreserveHost" within my Apache instance and now the pagination links are not pointing anymore to localhost.

 

Regards,

Pietro