Legacy Knowledge Base
Published Sep. 10, 2025

How can a URL be replaced or hidden on every site visit?

Written By

Kanchan Bisht

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • As a reverse proxy on the web server, whenever a user accesses a URL, the user is sent to the application server's IP address, which is visible on the site URL. Now, how can this URL be replaced by IP or hidden on every visit to the site.

Environment

  • Liferay DXP 7.2
  • Apache Web Server

Resolution

  • The reported issue is something that needs to troubleshoot on the Server-Side, and for this, the user may have to look into their Server directives (Listen, ServerName, ServerRoot, DocumentRoot) .
  • Users need to set their DNS hostname in the ServerName directory.
    # ServerName gives the name and port that the server uses to identify itself.
    # If your host doesn't have a registered DNS name, enter its IP address here.
    ServerName YourHostNameOrIPAddres:8000
  • However, the issue is beyond the scope of Liferay as a product, therefore, someone can be involved from the web-server team so as to overcome the situation as they would be having an expert hand on web server-related configurations and solutions.

Additional Information

  • As far as Liferay configurations, the properties which are defined in the below document can be configured when integrating Liferay with a web server or proxy: Using a Web Server With the Liferay PlatformWith this, kindly refer to the DXP 7.2 portal.properties which would help to get more insights into it.
  • There are some unofficial blogs (Link1 and Link2) in which the procedures are described. Please choose to follow it as per own discretion as this blog is not the official documentation of Liferay
Did this article resolve your issue ?

Legacy Knowledge Base