LxRoot docs

Nginx Website Tools

# About

Websites hosted on a Nginx webserver kind have additional tools available to them in the LxRoot UI.

The following Nginx tools can be configured on a per domain basis:

# FastCGI caching

FastCGI caching will maintain a static cache of rendered pages to avoid passing the request to PHP. This will greatly improve performance for your website users when a cached page is served.

To configure FastCGI caching:

  • Select Websites from the left hand menu
  • Select the website you would like to edit the Nginx settings for
  • Visit Developer tools and scfroll to the Nginx card
  • Select the domain you would like edit and configure the settings

# Cache Exclusion

This will prevent specific paths from being cached. This is useful for pages which must be dynamic such as shopping carts. An exact path like /wp-admin or a regular expression like ^wp can be excluded.

To configure Cache Exclusion:

  • Select Websites from the left hand menu
  • Select the website you would like to edit the Nginx settings for
  • Visit Developer tools and scfroll to the Nginx card
  • Select the domain you would like edit and configure the settings

# URL Rewriting

This will rewrite paths to a PHP script if the file does not exist. This is useful for WordPress permalinks functionality and other rewrites which would typically use .htaccess files.

To configure URL rewriting:

  • Select Websites from the left hand menu
  • Select the website you would like to edit the Nginx settings for
  • Visit Developer tools and scfroll to the Nginx card
  • Select the domain you would like edit and configure the settings

# Purge Cache

This will delete all currently cached pages from the cache.

To purge cache:

  • Select Websites from the left hand menu
  • Select the website you would like to edit the Nginx settings for
  • Visit Developer tools and scfroll to the Nginx card
  • Select the domain you would like edit and configure the settings