Ah, then yes, you can put it nearly anywhere you want. the vcl_* subroutines are callbacks, called by varnish, it doesn't matter where they are declared.
However, know that routines with the same names are concatenated ( http://www.varnish-cache.org/docs/4.0/reference/vcl.html#multiple-subroutines ) -- Guillaume Quintard On Wed, Mar 22, 2017 at 2:45 PM, Rodney Bizzell <[email protected]> wrote: > Can you put vcl_init anywhere in the config file or any other > subroutine? Does it look at that file first then goes to vcl_recv and then > goes to vcl_pass vcl_hit etc etc? I have a small simple config and I > wanted to add a little at a time. > > > > *From:* Guillaume Quintard [mailto:[email protected]] > *Sent:* Wednesday, March 22, 2017 4:39 AM > *To:* Rodney Bizzell <[email protected]> > *Cc:* [email protected] > *Subject:* Re: order of operations > > > > Hi Rodney, > > > > I'm really unsure about what you mean. A minimal VCL is in my opinion the > best way to start, ie. just use the default vcl provided by your package > and build on that. > > > > Also, 4.0 is old, try using 4.1, or even 5.1 when it's packaged. > > > -- > > Guillaume Quintard > > > > On Tue, Mar 21, 2017 at 9:14 PM, Rodney Bizzell <[email protected]> > wrote: > > Hello, > > I just wanted to know what is the recommendations for order of operations. > Is using the 4.0 config from github a good model to follow > > > > This email (including any attachments) may contain confidential > information intended solely for acknowledged recipients. If you think you > have received this information in error, please reply to the sender and > delete all copies from your system. Please note that unauthorized use, > disclosure, or further distribution of this information is prohibited by > the sender. Note also that we may monitor email directed to or originating > from our network. Thank you for your consideration and assistance. | > > > _______________________________________________ > varnish-misc mailing list > [email protected] > https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc > > >
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
