<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Search Results Pagination: how to replace localhost with the final domain?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120540997" />
  <subtitle>Search Results Pagination: how to replace localhost with the final domain?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120540997</id>
  <updated>2026-04-03T17:44:06Z</updated>
  <dc:date>2026-04-03T17:44:06Z</dc:date>
  <entry>
    <title>RE: Search Results Pagination: how to replace localhost with the final doma</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120546808" />
    <author>
      <name>Pietro Pagani</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120546808</id>
    <updated>2021-01-11T17:05:26Z</updated>
    <published>2021-01-11T16:42:36Z</published>
    <summary type="html">&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;finally I fixed the issue which was not related with Liferay but with
  some configuration on FE Web Server.&lt;/p&gt;
&lt;p&gt;In case other encounter the same problem...I have enabled
  &amp;quot;ProxyPreserveHost&amp;quot; within my Apache instance and now the
  pagination links are not pointing anymore to localhost.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Pietro&lt;/p&gt;</summary>
    <dc:creator>Pietro Pagani</dc:creator>
    <dc:date>2021-01-11T16:42:36Z</dc:date>
  </entry>
  <entry>
    <title>Search Results Pagination: how to replace localhost with the final domain?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120540996" />
    <author>
      <name>Pietro Pagani</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120540996</id>
    <updated>2021-01-07T17:18:38Z</updated>
    <published>2021-01-07T11:13:27Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;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&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;web.server.host&lt;/li&gt;
  &lt;li&gt;web.server.http.port&lt;/li&gt;
  &lt;li&gt;web.server.https.port&lt;/li&gt;
  &lt;li&gt;web.server.protocol&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Is there any configuration I'm missing?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Pietro&lt;/p&gt;</summary>
    <dc:creator>Pietro Pagani</dc:creator>
    <dc:date>2021-01-07T11:13:27Z</dc:date>
  </entry>
</feed>
