Monit configuration checks for common services running in CentOS 7

The following are Monit configuration that are created specifically for CentOS 7 system. If you have not installed Monit yet, please check this guide: Installing Monit to monitor your server running CentOS 7 with nginx.

Apache

Create the file /etc/monit.d/httpd and add the following to it:

Setup Solr Admin web interface in Nginx

This article will guide on setting up Solr Admin web interface in Nginx. If you haven't installed Solr in your system, please check this article Step by step guide to setup Apache Solr 5.x in CentOS 7 for Drupal 7 Panopoly distro using Search API. Please follow this guide if you haven't setup your Nginx yet.

  1. Create a domain for Solr, in this guide lets use solr.mywebsite.com. Go to DNS manager and add "solr" as A record for mywebsite.com

Tags

How to handle 404 not found Pagespeed optimized resources in Nginx

Pagespeed rename the static resources (like images, CSS, etc.) file name to mark as optimized and there instances where the Pagespeed optimized web pages' resources returns 404 not found and for several browser refresh they eventually loads up. In this case, Pagespeed is still in the process of optimizing the web pages' resources. We can handle this issue by the following Nginx script: