Nginx Website Tools

About

Websites hosted on an Nginx webserver have additional tools available to them in the LxRoot UI. These Nginx tools can be configured on a per-domain basis to optimize performance and handle routing.

FastCGI caching

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

How to Configure:
  • Select Websites from the left hand menu.
  • Select the specific website you would like to edit.
  • Visit Developer tools and scroll to the Nginx card.
  • Select the domain you would like to edit and configure the settings.

Cache Exclusion

This prevents specific paths from being cached. This is essential for pages that must remain dynamic, such as shopping carts or checkout pages. You can use an exact path like /wp-admin or a regular expression like ^wp.

Configuration Path: Follow the same steps as FastCGI caching via the Developer tools > Nginx card.

URL Rewriting

This rewrites paths to a PHP script if the file does not exist. This is the Nginx equivalent to .htaccess rules and is required for WordPress permalinks and other CMS routing functionality.

Configuration Path: Follow the same steps as FastCGI caching via the Developer tools > Nginx card.

Purge Cache

This action will delete all currently cached pages from the server, forcing Nginx to fetch fresh versions from PHP on the next request.

Instant Refresh: Use this after pushing significant site updates to ensure visitors see the latest version immediately.

Configuration Path: Follow the same steps as FastCGI caching via the Developer tools > Nginx card.