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 from Liferay (App Server)
Disable from nginx (Web Server)
if (!-e $request_uri) {
rewrite ^ / permanent;
}
Display a static HTML page:
Conclusion:
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
October 14, 2022
September 15, 2022
August 29, 2022
August 26, 2022
August 9, 2022
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.