CloudPanel: Vhost and Varnish

In the examples 203.0.113.10 is your server address and my-site.com is your domain. The server address and panel password are in the e-mail with your credentials.

Vhost

The NGINX configuration of the site: redirects, URL rewrites, proxy. The panel configured it for the chosen application. Do not change it without need.

Vhost editor
Vhost editor

The panel checks the syntax before saving. On error the changes are reverted. HTTP/3 is enabled with the line http3 on — only with a real certificate.

Varnish

A page cache in memory. Pages are served without running PHP — tens of times faster. Supported: WordPress, WooCommerce, Laravel, Symfony, CodeIgniter, Slim, Generic.

  1. Site → "Varnish Cache" → turn on the switch → "Save".
  2. In WordPress install the CLP Varnish Cache plugin: "Plugins" → "Add New" → search. The plugin purges the cache when posts are published.
Varnish tab
Varnish tab
SettingPurpose
Cache LifetimePage lifetime in the cache, seconds.
Excluded ParamsGET parameters that disable caching.
ExcludesPaths without cache: ^/my-account/, /cart/, wp-login.php. For WooCommerce the cart and account are already excluded.
Purge Entire CacheClear the whole cache. Needed after a theme change and CSS edits.

Visitors see someone else's data or stale pages — add the path to Excludes and purge the cache. Or switch Varnish off.