Need help finding something? Start Here

How to configure efficient caching with Nginx in cPanel

Nginx reverse proxy cache

Efficient caching is critical to faster page delivery and good website ranking by all search engines. Though many modern CMSs have built in caching (Drupal or WordPress), it is vital to provide a server-level and network-level caching to improve page delivery further.

Efficient caching with Nginx

RedyHost's cPanel server provide capability to the following caching method:

  1. Nginx static files cache
  2. Nginx Gzip and Brotli compression
  3. Nginx mod_pagespeed to optimise page and asset files size for desktop and mobile devices
  4. Nginx microcache
  5. Nginx cache of your entire website
  6. SSL termination and HTTP/2

How to configure efficient caching of your website

  1. Login to cPanel from your client area
  2. Navigate to the Nginx control pane at the bottom of cPanel page

    How to access Nginx control via cPanel
  3. Select your domain that you intend to manage

    How to select domain in Nginx to manage XtendWeb plugin
  4. Click the Server Settings button

    Use XtendWeb to configure Nginx settings in cPanel
  5. Enable static files cache and Submit your changes

    Enable static files cache in Nginx in cPanel

How to enable Nginx Microcache in cPanel

Just follow the steps 1 and 2 above, then:

  1. Click Application Settings button

    Access Application Settings in XtendWeb to control Nginx microcache
  2. Ensure Proxy mode is selected 

    In this mode Nginx proxies requests to Apache and provides microcache or cache layer

    Select PROXY mode in Nginx
  3. Activate microcache or cached mode in Nginx

    Activate microcache in Nginx in cPanel
  4. Submit the page. Your cache is now activated.

 

To enjoy the flexibility and easy to setup caching for your website, sign up for RedyHost cPanel hosting plan of your choice now.

 

 

Was this helpful?: 
Average: 5 (1 vote)