Configuring SSL step by step for Liferay DXP Cloud & Liferay DXP

Configuring SSL step by step for Liferay DXP Cloud & Liferay DXP

Please follow each step to learn how to configure the SSL Liferay DXP server.

Liferay DXP Cloud:

DXP Cloud accepts only keys and certificates in proper PEM format with Base64 encoding which must include encapsulation boundaries.

To add a single SSL certificate to the LCP.json file:

  1. Add secret variables for crt and key values to your chosen environment.
  2. In the LCP.json file of your project repository’s webserver, add an object of SSL inside the load balancer object with crt and key values refering to the secret keys you have added:
  3. { 
        "loadbalancer": { 
           “ssl": { 
              "key": "@ssl-key-secret", 
              "crt": "@ssl-crt-secret" 
  4. This ssl object will create a single custom SSL certificate mapping to all the custom domains in this specific environment.

Mapping multiple SSL certificates to custom domains:

You can use the certs property instead of ssl object to map different SSL certificates to multiple custom domains.

Create a list of certificates you want to use in the certs property.

Group the crt and key values for each certificate with their respective custom domains:

"loadbalancer": { 
"certs": [ 
"customDomains": [""], 
"key": "...", 
"crt": "..." 
"customDomains": [""], 
"key": "...", 
"crt": "..." 

Liferay DXP with Nginx:

If you are using Liferay DXP with Nginx, you must configure the SSL in your nginx server.

To configure HTTPS server through Nginx, the ssl parameter must be enabled on listening sockets in the server block and the locations of the crt and key file should be specified:

server { 
    listen                         443 ssl; 
    server_name  ; 
    ssl_certificate ; 
    ssl_protocols           TLSv1 TLSv1.1 TLSv1.2; 
    ssl_ciphers               HIGH:!aNULL:!MD5; 

The server certificate is a public entity. It is sent to every client that connects to the server. The private key is a secure entity and should be stored in a file with restricted access, however, it must be readable by nginx’s master process. The private key may alternately be stored in the same file as the certificate:


in which case the file access rights should also be restricted. Although the certificate and the key are stored in one file, only the certificate is sent to a client.

The directives ssl_protocols and ssl_ciphers can be used to limit connections to include only the strong versions and ciphers of SSL/TLS. By default nginx uses “ssl_protocols TLSv1 TLSv1.1 TLSv1.2” and “ssl_ciphers HIGH:!aNULL:!MD5”, so configuring them explicitly is generally not needed. Note that default values of these directives were changed several times.

Generating an SSL Certificate:

You will need to convert the pfx file of the certificate to the crt and key files

Generating an SSL Certificate:

You will need to convert

Convert pfx to crt:

< openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [drlive.crt] >

Convert pfx to private key:

< openssl pkcs12 -in [yourfile.pfx] -nocerts -out [drlive.key] >

Decrypt the private key:

< openssl rsa -in [drlive.key] -out [drlive-decrypted.key] >

For DXP cloud, you need to convert the crt and decrypted key to base64 format:

< openssl base64 -in originalkeyfile.key -out base64keyfile.key > 
< openssl base64 -in originalcertfile.crt -out base64certfile.crt > 

Here concludes the process of configuring the Liferay DXP SSL server. Check out our repository to learn about the challenging Liferay DXP programming questions that may help programmers.

Reach out to us if there is any consultation and implementation need.

Importance of Customer Portal for Bank and Financial Organizations

Though Banks and Non-banking financial companies are differentiated by their offerings of the different banking services or financial services, the core purpose of customer portals – a vital domain of the digital transformation strategy, is to serve customers digitally making their journey seamless and uninterrupted. 

Nowadays, banks are targeting self-service customer portals where the customer can access all the services and their information from a single place. Providing a high-quality user experience helps companies to improve their retention rates hastily.

Read through the blog to understand how empowering customers with self-service is important

There are many use cases where the companies using legacy systems present a set of limited capabilities and inconsistent experiences to the customer which leads to an unsatisfactory customer experience. Whereas there are cases where the companies fail to create a community around their brand in terms of reinforcing the customer to believe that they have chosen the right decision when using the services of the company.

Another way of setting the importance of customer self-service is to be proactive in filling the gaps in the journey and anticipate the customer needs meanwhile saving the company money and time. For instance, generating a card or welcome letter as soon as the user registers on the portal and provides its delivery address.

Some of the effective results that can be achieved with a customer self-service portal are – 

  • Decrease volume of support calls – Ease of access to support and information in a single window, thus decreasing the call volumes of financial consultants.
  • Increase in client activity – Establishing credibility and trust around the customer increases client activity.
  • Decrease in response time – Access to information leads to a decrease in response time as most of the information is being published on the portal itself.
  • Increase in total volume handled by the company – Total support calls decrease enabling the companies to handle a load of customers in lieu of the support budget.
  • Decrease in total support costs – The support budget decreases by half enabling the company to provide a seamless experience to the customer at the same cost.
  • Increase in client satisfaction – Positive customer experience results in an increase in client satisfaction and gives power to a customer to find a solution to their query by themselves.

These are some of the ways in which many organizations are keeping themselves apart from competitors and understand the long-term benefits of using self-service portals.

Customer self-service portals are one of the vital digital transformation solutions. Customer Portal with self-service functionality is prevalent in organizations across industries. We at ContCentric have been digitally transforming organizations on the global front and we have a portfolio of companies that are benefiting with the help of our solutions on digital transformation with Liferay DXP. Reach out to learn more!


Digital Transformation in Automotive Manufacturing

Manufacturing in Automotive is one of the primary segments of the automotive industry. Considering the vastness of the mere manufacturing itself among many other sectors of the industry, it revolves around manufacturers, parts manufacturers, OEMs, VARs, dealers, suppliers, and partners.  

The digitization of every process along with the complete digital transformation simplifies the complex web of inter-relations and inter-dependency of all the stakeholders in the sector. 

Digital solutions with Liferay DXP 

Automotive manufacturers are constantly figuring out digital and technology-enabled solutions to better meet the changing customer and industry demands.  

Manufacturing aspects of producing light-weight materials, highly efficient batteries to meet increased demands of EVs, cutting-edge technology implementations for automation in vehicles like self-driving, and customization-to-details to name a few, demand a lot of content management, data analytics, interconnecting siloed processes, future-proofing with storing data on the cloud and multiple other solutions for a complete and seamless digital transformation of manufacturing sphere of the automotive industry.  

Focusing on all the manufacturing sections of the automotive industry, The Digital Experience Platform, Liferay DXP solves multiple digital transformation setbacks and offers agile, secure, and scalable solutions. 

Read through the blog, Digital Transformation in Manufacturing Industries, to learn about manufacturing digital transformation, its challenges, and the solutions using Liferay DXP. 

Portal solutions with Liferay DXP for Automotive industry manufacturers 

Automotive manufacturing leverage Liferay DXP primarily for the following use cases.  


Portal solutions for Automotive Manufacturing

With Liferay DXP, businesses overcome common industry challenges to increase revenue and create user value. The figure below mentions the imperative benefits.  

Liferay DXP Solutions

 No matter the automotive manufacturing digital transformation use case, the five prime benefits mentioned above participate aptly in making their digital transformation journey smooth. Whether part-manufacturing business, motorcycle manufacturing, car/truck manufacturing, or the dealers and partners involved in each of these sectors;  

Self-service functionality in digital solutions reduces costs, increases productivity, and primarily increases user/customer satisfaction.  

Personalization in the portal solutions enhances the user journey by increasing the interaction time and increased conversion rates. 

Omnichannel touchpoints to interact with the customers in their preferred way. Mobile-first approach, Single page view or single platform approach for the customers to keep their entire journey consistent.  

Future-proofing with Cloud to always be prepared to combat unprecedented times. A secure and scalable solution with disaster recovery capabilities ensures business continuity.  

Flexibility in the portal solution benefits the businesses to create quite a distinct solution as per the need. Multiple solutions can be created on a single platform with seamless integrations with the legacy/new systems. Thus, leveraging the investment that has already been made.  

At ContCentric, we have been involved in creating digital transformation solutions with Liferay for almost two decades for global organizations across industries. Reach out to us at to learn about case studies in the automotive industry.  


A Seamless B2B and B2C Car Leasing Experience with Liferay DXP

The global car leasing market is projected to grow from USD 82.01 billion in 2022 to USD 131.10 billion in 2029 at a CAGR of 6.9% as per research by Fortune Business Insights.

Along with the automotive industry, the leasing industry sees demand for technological transformation and strategies for customer experience improvement. Leasing a car isn’t a popular choice among retailers. But the market has been rising for a couple of years and is anticipated to grow as mentioned in the statistics above.

The pros of being able to use multiple different new launch models and not worrying about the maintenance and insurance hassle are pulling the leasing audience. People have begun to realize all such leasing advantages. The participation of general or retail users aside from corporate users has expanded the leasing market.

With the rapid emergence in the demand for EVs and to reach the end-user through all possible channels, OEMs participate in leasing industries besides CaaS and MaaS, as well to meet the newest leasing demand and offer the experience they require.

Let us learn along to learn about the leasing-digital solutions with Liferay DXP to create better experiences for the users.

Elevate car leasing experience with innovative digital solutions with Liferay DXP

Liferay DXP is a Digital Experience Platform to create seamless and transforming solutions for an exceptional leasing journey. To meet the never-like-before increasing customer demand for digital solutions, the portal platform Liferay DXP proves to be a frugal yet prudent solution.

In the retail use case of leasing, partner use case, or corporate use case, a leasing portal solution that is consolidated and seamless can be created on top of Liferay DXP. The out-of-the-box functionalities of Liferay DXP like, User Management, Search, Interoperability, Forms & Workflow, Integration, etc. create a robust end portal solution. Apart Liferay Commerce module quickens the process of building eCommerce solutions reducing the time-to-market. Liferay DXP with Liferay Commerce creates seamless journeys for B2B and B2C both by responding to each touchpoint.

The possibilities of the solutions with Liferay DXP are endless, and distinct needful solutions can be created effortlessly with Liferay DXP.

Importance of customer experience in the leasing process

Customer experience is being used as a differentiator by companies to gain a competitive advantage. The so-called good solutions are not enough today to meet the demand; hence businesses want to create better, more engaging, and personalized experiences for the customers.

Customer experience plays a rewarding role in both the use case, B2B and B2C. The leasing business model with better experiences wins the best of both worlds by letting the oh-so-willing OEMs get one more channel to enter the market and on the other hand, the lessee chooses the hassle-free journey.

With Liferay DXP, a unified experience can be created along with the touch of personalization to serve the customers as they want to be served. A scalable and flexible solution for a connected omnichannel experience.

Reach out to us for a digital transformation consultation for your organization. We, at ContCentric, have been passionately creating solutions for global innovators with the expertise of being in the industry for almost two decades.

Email us at to learn about the case study of a global leasing company.

How to Fix Liferay 7.3 and 7.4 Theme Build and Deploy Issue  

Themes are created using the Liferay Theme Generator. Liferay DXP 7.3 uses version 10. x.x of Theme Generator. 


To create themes for DXP 7.0 or 7.1, install version 8.x.x of the Theme Generator. Themes for older versions of Liferay DXP can be generated using previous versions of the Liferay Theme Generator. 

When you create a Liferay theme with 10.x.x of theme generator and try to build and deploy the theme you might face issues, follow the steps mentioned below guided by the screenshots to fix the issue. 
Click here for Liferay 7.3 theme generator

To fix theme build and deploy issues, you need to follow the steps below

1) Open the package.json file and make the changes as shown below. 

File path: themes/x-theme/package.json 

For the DevDependencies section, we will need to change the below-mentioned three property versions. 


"liferay-frontend-theme-styled": "5.0.0", 

"liferay-frontend-theme-unstyled": "5.0.0", 

"liferay-theme-tasks": "^10.0.2", 

2) Remove node-modules, dist and build folder. 

3) Run the below command. 

npm install -g yo gulp 

4) Install node 12.22.2 

5) Install npm with the command- 

npm install 

6) Now run the command. 

npm build 

npm deploy 

That’s all, a simple guide to fixing the theme generator issue in Liferay DXP. Are you facing any other issues with Liferay development or implementation? Check out our repository or reach out to us at We can consult on the business solutions with Liferay implementations. 

Top 3 Robust and Agile Banking Digital Solutions with Liferay DXP 

As per the report by MarketsandMarkets, the global digital banking platform market size is expected to grow from USD 8.2 billion in 2021 to USD 13.9 billion by 2026 at a CAGR of 11.3%. 

Digital banking is continually adapting and proceeding with digitalization in the industry to deliver an enhanced customer experience. Technology has been shaping banks for years now to become more efficient as well as secure. But, with the surge of Banking as a Service, BaaS, and Fintech innovating digital banking solutions, the digital transformation in banking sets a huge curve of digital changes.  

Let us read along to understand digital solutions with Liferay DXP in banking. 

Digital Transformation in Banking 

Digital transformation has always been about doing the things we have been doing in a newer way, in a technological way. In Banking, digital transformation is about changing all the traditional ways of dealing and engaging with customers to the ones using online and digital services.  

Mobile Applications, Websites, Portals, and leveraging the digital channels while collaborating with Fintech and third parties to offer BaaS are some of the digital banking strategic solutions. It is about creating a 100% end-to-end omnichannel digital journey to meet the rising need for enhanced customer experience. According to the Citizens Banking Experience Survey, 90% of consumers and 86% of businesses use digital banking channels. 

Portal solution for digital transformation in Banking 

A portal acts as an integrated platform to respond to each touchpoint of an entire customer journey.  Liferay DXP is a portal platform that’s flexible and scalable, that seamlessly integrates multiple systems, and also has various use cases to respond to numerous and all touchpoints to enhance the customer journey.  

Liferay as a platform has been recognized by various banking and financial institutions throughout the world because of its core building materials and focus on security by design. Multinational companies are moving towards a digital age where they want their system to be scalable in various aspects such as faster implementation, less dependency, and easier process to configure and launch any product to the market.  

Read the writeup with Why, How, and What on accelerating the digital transformation with Liferay DXP

It’s been decades since banks continued to implement different digital solutions as per their needs. Technology has continued to evolve and will continue evolving in the future. The solutions that Industry 4.0 has brought about Automation in Processes, Implementation of cutting-edge technologies like AI/ML/IoT has dawned a completely different era of technologies transforming businesses. Among the digital solutions, portal solutions with DXPs are considered prudent, frugal, and anti-fragile.  

Three robust banking use cases with Liferay DXP  

  • Self-service portal
    • Self-service is prevalent in many industries including banks. As per the research by Microsoft, 77% of consumers report using self-service portals.  
    • Self-service is one of the most important approaches adopted by banks to improve the customer experience along with the mobile-first approach.
  • Public-facing Portal  
    • This helps the organization to show their value proposition, target the desired customer and funnel the prospect to enhance businesses and their service catering. The banking sector leverages data to offer enhanced and personalized experiences. 
  • Integration Platform  
    • Building a unified platform for all the disparate systems helps the customer to view and access all the required functionalities from a single platform. 

Liferay use cases

Three strong factors that Liferay DXP takes care of in the banking sector

  • Omnichannel experiences  
    • Omnichannel experience for a seamless flow of information to the customer throughout different channels. This also helps the organization to target the customers as per the usage on the different points of contact.
  •  Future-proofing with Cloud 
    • Banking institutions follow a hybrid cloud approach which will help them in maintaining the different architectures from a single Liferay infrastructure.  
    • And, organizations are expanding their investments for it is supplemented with security and disaster recovery.
  • Legacy system integration  
    • One of the biggest barriers in the digital transformation journey is the integration of the legacy system. Liferay DXP offers robust interoperability functionality for the seamless integration of existing systems into one user-friendly platform. 

A whole Digital transformation of any organization is on its own a very complex process. However, the transformation roadmap around SaaS and PaaS is simplified with our solutions using Liferay DXP. We, at ContCentric, have crafted solutions for many global giants across industries including banking use cases. Reach out to us to learn more about optimizing your digital banking solutions or send us an email at!


How to Upgrade Liferay DXP From 7.3 GA1 to SP3 Version? 

Here is the easy step-by-step guide to changing the Liferay version from GA1 to SP3. Follow these clear as crystal steps to change the version.  

Step-1: Keep the backup of the previous Liferay DXP bundle and backup the old database file. 

Step-2: Create a new database and import the database file which you have updated. 

Step-3: Download Liferay bundle sp3-version. 

Step-4: Replace the data folder with the old data folder. 

Step-5: Start the server. 

Step-6: Install Fix Pack and Hotfix 


Step-2: Keep the backup of your existing environment before installing the fix. 

Step-3: Stop the application server. 

Step-4: Open the terminal and navigate to the [LIFERAY_HOME/patching-tool] folder. 

Step-5: If any patches are available then run the command “./ revert” to uninstall all the previous patches. Make sure that the previous patch has been uninstalled successfully. 

Step-6: Now completely remove the [LIFERAY_HOME/patching-tool] folder. 

Step-7: Unzip the Liferay DXP Patching Tool 3.0.32 file at [LIFERAY_HOME] where data, deploy folders are present. Also, make sure after unzipping we take the inner folder which is “patching-tool”

Step-8: Open the Command Prompt from the [Liferay_Home/patching-tool] folder. 

Step-9: Now run the command “./ auto-discovery” 

Step-10: After then Place into the ${LIFERAY_HOME}/patching- tool/patches directory. 

Step-11: Now run the command “./ info” to make sure that the hotfix and fix pack are within that folder. 

Step-12: Now run the command “./ install” to install the hotfix and fix pack. 

Step-13: Now run the command “./ info” again to make sure that the patch has been applied successfully. 

Step-14: Clean up the cache folders within DXP’s [LIFERAY_HOME]:

    • Delete the [LIFERAY_HOME/osgi/state] folder
    • Delete the [LIFERAY_HOME/work] folder  
    • Delete the [LIFERAY_HOME/<tomcat-version>/temp] folder  
    • Delete the [LIFERAY_HOME/<tomcat-version>/work] folder 

Step-15: Finally, now Start the application server.  

Step-7: Upgrade Database Steps 

Step-1: Take the new Liferay 7.2 instance. 

Step-2: Copy Data File in an instance. 

Step-3: Create file “” at [Liferay Home]/osgi/config] 

Step-4: Go to [Liferay Home]/tools/portal-tools-db-upgrade-client] 

Step-5: run command “ ./” 

Step-6: Enter required details (Change if want) 

    • Enter postgresql database server name 
    • Enter ip address (uat/prod/local) 
    • Enter database name: database name 
    • Enter user name: username 
    • Enter password: password 

Step-7: Restart the application server. 

Step-8: Replace Liferay 

    • change database name and add Liferay home path. 

Step-9: Replace Liferay 

    • change all changes that have done pervious bundle. 

Step-10: add all jar file and license key in osgi/modules folder. 

Step-11: add war file osgi/war folder. 

Troubleshooting steps: 

  • Replace old file in osgi/config folder
  • Remove jar file and redeploy 

Here you complete the version change from ga1 to sp3. Follow these steps to install and download the files hassle-free

Looking for a development partner for your Liferay implementation and development needs?
Connect with us to Upgrade and Migrate your legacy portal on Liferay.


Power of Liferay Digital Experience Platform

Disruptive technologies are transforming businesses. Entreprises for so long have been exploring and adapting digital solutions to achieve business agility. The benefits of competitive advantage and increased time-to-market that digital innovations bring is a no less known fact.   

Organizations have layers of technologies and platforms to carry out the business processes. There have been silos of technologies and systems which, today, are becoming difficult for enterprises to keep up with the ever-increasing demand, that of customers as well as the dynamic business world, as this has been a long technological curve towards changing business landscape.   

There is ERP, CMS, business intelligence tools, Marketing tools, yet another web platform, and an assortment of technologies underlying the organization’s technological framework. A DXP acts as an Integration Platform to unify all disparate systems seamlessly and enables enterprises to offer consistent customer experience across multiple customer journeys.  

Liferay DXP is a Digital Experience Platform that comes with enhanced features and functionalities to transform your business. The features can help you bring together disparate systems, make processes more efficient, and provide better insight into the approaches into consideration like mobile-first design, and single platform approach.  

Three strategies to frame while implementing DXP

  • First things first, solidly define business requirements. 
    •   Businesses have got to clearly define business processes for better workflows  
  • Defining robust digital strategies
    • Digital experience strategy for being able to deliver seamless and consistent experiences
    • Cloud strategy for security and to future proof your business  
    • Data and Analytics strategy to win the market with appropriate insights and faster decision-making  
  • Better optimization of the digital solution with continuous support and upgrades  

Three biggest benefits that Liferay DXP offers

  • Consistent Customer Experiences 
    • With the solution with Liferay DXP, an enterprise can unify customer experiences across every touchpoint of an entire customer journey with a mobile-first design, a single view for customers, and a single (integrated) platform approach. This ensures your customers have seamless experiences that are consistent throughout the journey.
  • Seamless Integrations and power of personalization and customization
    • Liferay DXP builds on its portal platform with business components that can connect all the systems and processes for a unified approach. Businesses get the advantage of seamless integration with legacy systems without compromising on user experience.
  • Future-proofing with a robust Cloud solution
    • The next step the organizations that are already ahead in the digital transformation look up to is cloudification. Cloudification of everything! Cloud computation is a secure, cost-efficient, and reliable solution that also comes with disaster recovery. 
Are you on the path of designing a highly robust digital transformation strategy?
Do you need any assistance in designing a prudent yet frugal strategy?

We are here to help! Contact us today at We are a Gold Liferay Service Partner. We have been in the industry providing digital transformation solutions for almost two decades.    

Future-Proof Your Business: A Robust & Secure Cloud-Based Solution

Changing times leading to evolving technologies

The idea about future-proofing your business has to be considered hand-in-hand while still gearing up with the digital transformation initiatives. There has never been a more urgent need to future-proof your business because of the digital disruptions and unprecedented times.  

Though the global giants have already been on the path of digitization for more than a decade, there has continually been an evolution in the business processes and business landscape. Today, enterprises across industries understand the humongous benefits of digitization. Leaders around the world believe that there is no choice but to digitize. 

Yet more evolution and robust digital initiatives are a must in order for organizations to be future-ready in these disrupting times. Now, when disruption is a new reality, resilient and antifragile solutions are essential for business continuity.  

Technological solutions have helped many industries to carry on as usual during the covid 19 pandemic. In order to combat such uncertain times having understood the significance of the technological implementations, a business’s IT budget has increased manyfold, only to get back higher returns as well as in short order.  

Below are the challenges enterprises face in their journey toward digital transformation, which isn’t static and continually evolving. The challenges mentioned below if kept in mind to prepare a roadmap would future-proof the business. 

Critical challenges digital leaders face in adopting advanced technology 

  • The biggest hindrance in the digital transformation journey is legacy infrastructure. To find a solution flexible enough that can integrate with legacy systems. To decide upon exact infrastructure needs while keeping mobile-first and cloud-first approach 
  • Modernizing technology for better deployment
    • To find a secure, open-platform cloud solution supplemented with disaster recovery and security 
    • And, a solution that can manage and analyze structured as well as unstructured data 
  • To design a robust cloud strategy and data & analytics strategy 

The Three Pillars to Future-Proof Your Business

In 2022, the three bases to back the organization to be future-ready are –  

  • Cloud  
  • Cutting-edge technologies like AI, ML, IoT 
  • Advanced Analytics 

Data is increasing at an unprecedented rate. This digital era brings the challenge to hone the technological skills to house the data, process it, and analyze it in order to make efficient decisions making, and optimize the business processes. Cloud computing proves to be an innovative, highly scalable, and secure solution.  

Everyone is producing so much content today, besides enterprises already have massive amounts of legacy data. It is definitely not the case with every enterprise to inculcate on-premise/private data centers. Whereas the economy is shifting towards the public cloud which is a cost-efficient, highly reliable, and future-proof option.  

With inappropriate infrastructure support, businesses are able to analyze only 2% of the data. 

Adopting cloud services is a new normal 

Cloud adoption can help businesses –  

  • Accelerate time-to-market 
  • Reduce infrastructure responsibility 
  • Ensure business continuity 

Liferay Experience Cloud

Building digital experiences that form a seamless journey with respect to customers’ needs and demands is crucial. Liferay Experience Cloud is a streamlined and robust platform to deliver effective digital solutions. Liferay DXP + Cloud with built-in analytics and B2B commerce functionalities is a full-pack solution called Liferay Experience Cloud.  

Organizations can benefit from the robust capabilities of the digital experience platform and must not worry about the upgrade, security, maintenance of the solutions, and hosting on the cloud infrastructure. This dramatically reduces implementation time and eliminates upgrade & maintenance, and infrastructure costs. This cloudification of business storage and computation comes with the benefits of security and disaster recovery.  

ContCentric is a digital solutions implementation company. We are a Gold Liferay Partner. We can help you with digital transformation solutions and cloud solutions on top of Liferay. Reach out to us to transform your business and future-proof it!  


Disable a Site in Liferay and Display a Static Page Through Nginx

In our case, multiple sites are hosted on a single app server and web server(Nginx). The requirement was to disable one of the sites, and a result of hitting the disabled site should be a custom page displayed with the message that the site is unavailable.

For doing this, there are three actions to be performed:

  • Disable the app from the app server
  • Avoid it from hitting the app server form the web server
  • Display a custom static HTML page instead of the default nginx page.

To disable the site:

Disable from Liferay (App Server)

  • Login to Liferay application using the admin credentials
  • Goto Control Panel => Sites


Control panel

  • Disable the required site by clicking on three dots located besides the site and then on Deactivate.

 Disable from nginx (Web Server)

  • Login to your web server and open the terminal
  • Go to the following path: /etc/nginx/sites-enabled  or  /etc/nginx/conf.d
  • Open the config file of the specific domain you need to disable.
  • Comment the line containing proxy_pass and add the following to disable all the URLs of that domain present in the location tag:
if (!-e $request_uri) {
       	rewrite ^ / permanent;

Disable from nginx

Display a static HTML page:

  • Put your custom HTML content in index.html (This file has the default page of nginx) file present at the following path: /usr/share/nginx/html/  or  /var/www/html (Based on your server config, the location of index.html file might be in any one of the location).
  • Restart the nginx server:  sudo service nginx restart


In this tutorial, you learned how to disable a site from Liferay, where the default Nginx page is located, and how to change it by using any text editor

    Have a Business Inquiry ?

    Let us collaborate and break yet another barrier to digitalization. Connect with us to discuss the project!

    Let us connect the digital dots!

    We are seeking dynamic professionals and unstoppable talents to craft distinct solutions for our clients to enhance their businesses. Come, join our fair & focused, optimistic & thoughtful world and deliver excellence together.