fbpx

Uncategorized

VCL coding style

by , , revisited on


We have by far the largest RPM repository with NGINX module packages and VMODs for Varnish. If you want to install NGINX, Varnish, and lots of useful performance/security software with smooth yum upgrades for production use, this is the repository for you.
Active subscription is required.

Indentation: 4 spaces.

Function opening bracket on the same line with definition:

sub vcl_miss {
    return (fetch);
}

Single lines of VCL can be commented out using // or #. Multi-line blocks can be commented out with /* block /*.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: