URL opt-out feature examples

The following list of example rules can be setup via WHM -> cPanel Varnish -> Advanced Configuration -> URL opt-out

1) ^/wp-admin

The carret means match a URL starting with /wp-admin

Example: matches http://blog.unixy.net/wp-admin and http://blog.unixy.net/wp-admin/index.php but does NOT match http://unixy.net/blog/wp-admin

2) /wp-admin (without the carret)

Matches any URL that has the string "/wp-admin" like http://unixy.net/blog/wp-admin or http://unixy.net/anotherblog/wp-admin/login.php

3) ^/index\.php?action=googlemap$

The above rule matches exactly any URL: http://blog.unixy.net/index.php?action=googlemap

If the above URL were to be "http://blog.unixy.net/index.php?action=googlemap2", the URL would not match.

Note: dots (.) must be escaped! Example "update\.php"

  • 50 Users Found This Useful
Was this answer helpful?

Related Articles

How do I uninstall the cPanel Varnish Plugin?

Here are the steps to remove the cPanel Varnish Plugin from your server. It's recommended that...

I've installed the cPanel Varnish Plugin, now what?

No action is required from your end. The installation script takes care of installing and...

Where can I download the installer?

The installer is in the Client Area location. Simply login to your account at...