• Resolved agusluc

    (@agusluc)


    All the PURGE requests sent to varnish using the VLC generated by the plugin, result in this error:

    VCL_Error ban(): Expected second operand.

    At first is hard to tell because the PURGE request is always returning HTTP Code 200, but if you inspect the varnish logs with varnishlog -g request -q 'ReqMethod eq "PURGE"' you will see the VCL_Error in every request made by the plugin

    Versions:
    Varnish 6.0.1
    VCL v4
    Wordpress 5.3.2
    Vcaching Plugin 1.8.3
    PHP 7.3

Viewing 1 replies (of 1 total)
  • Thread Starter agusluc

    (@agusluc)

    Found the issue. The “hosts” field on the plugin configuration is mandatory, the plugin doesn’t get the hostname from the wordpress configuration, so if you leave it blank, all the PURGE request sent to the varnish will be missing the host. Maybe the configuration page needs a more clear explanation, it says that is only required if you use multiple domains, which apparently is not the case

Viewing 1 replies (of 1 total)
  • The topic ‘Bans not working on generated VCL’ is closed to new replies.