Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Misc

How to include inside vcl_recv

 

 

Varnish misc RSS feed   Index | Next | Previous | View Threaded


abraham.sustaita at buscacorp

Jul 9, 2012, 9:38 AM

Post #1 of 8 (199 views)
Permalink
How to include inside vcl_recv

How should I include a file inside vcl_recv?

I have this:

# Main File
# Version: 1.0.0.07092011

# Backends
include "backend.vcl"

# Amazon Backends
include "amazon.vcl"

acl purge {
"localhost";
"192.168.11.0"/24;
}

# vcl_recv
include "vcl_recv.vcl"

And inside the file vcl_recv.vcl I want to configure some things, but
making includes of other files. Can I do it?


contact at jpluscplusm

Jul 15, 2012, 1:57 PM

Post #2 of 8 (178 views)
Permalink
Re: How to include inside vcl_recv [In reply to]

On 9 July 2012 17:38, Abraham Cruz Sustaita
<abraham.sustaita [at] buscacorp> wrote:
> How should I include a file inside vcl_recv?

I think the reason you've had no replies to this mail is because the
answer is eminently discoverable via your favourite search engine.
Try "varnish cache include syntax".

Jonathan
--
Jonathan Matthews
Oxford, London, UK
http://www.jpluscplusm.com/contact.html

_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc


nick.tailor at gmail

Jul 15, 2012, 11:23 PM

Post #3 of 8 (180 views)
Permalink
Re: How to include inside vcl_recv [In reply to]

Sheesh, just tell him. It's like any other php, apache, etc

Include "file path";

Sent from my iPhone

On Jul 15, 2012, at 1:57 PM, Jonathan Matthews <contact [at] jpluscplusm> wrote:

> On 9 July 2012 17:38, Abraham Cruz Sustaita
> <abraham.sustaita [at] buscacorp> wrote:
>> How should I include a file inside vcl_recv?
>
> I think the reason you've had no replies to this mail is because the
> answer is eminently discoverable via your favourite search engine.
> Try "varnish cache include syntax".
>
> Jonathan
> --
> Jonathan Matthews
> Oxford, London, UK
> http://www.jpluscplusm.com/contact.html
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc [at] varnish-cache
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc


contact at jpluscplusm

Jul 16, 2012, 4:29 AM

Post #4 of 8 (177 views)
Permalink
Re: How to include inside vcl_recv [In reply to]

> On Jul 15, 2012, at 1:57 PM, Jonathan Matthews <contact [at] jpluscplusm> wrote:
>
>> On 9 July 2012 17:38, Abraham Cruz Sustaita
>> <abraham.sustaita [at] buscacorp> wrote:
>>> How should I include a file inside vcl_recv?
>>
>> I think the reason you've had no replies to this mail is because the
>> answer is eminently discoverable via your favourite search engine.
>> Try "varnish cache include syntax".

On 16 July 2012 07:23, Nick Tailor <nick.tailor [at] gmail> wrote:
> Sheesh, just tell him.

Ok, but you fed him the first time - he's your responsibility when he
comes back hungry for more trivially discoverable information ... ;-)

J

--
Jonathan Matthews
Oxford, London, UK
http://www.jpluscplusm.com/contact.html

_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc


nick.tailor at gmail

Jul 16, 2012, 5:43 AM

Post #5 of 8 (178 views)
Permalink
Re: How to include inside vcl_recv [In reply to]

Hahhahaha, google is not always your friend. It will give you like 10 different answers for things. Sometimes it's easier and time efficient to just tell them.

Sent from my iPhone

On Jul 16, 2012, at 4:29 AM, Jonathan Matthews <contact [at] jpluscplusm> wrote:

>> On Jul 15, 2012, at 1:57 PM, Jonathan Matthews <contact [at] jpluscplusm> wrote:
>>
>>> On 9 July 2012 17:38, Abraham Cruz Sustaita
>>> <abraham.sustaita [at] buscacorp> wrote:
>>>> How should I include a file inside vcl_recv?
>>>
>>> I think the reason you've had no replies to this mail is because the
>>> answer is eminently discoverable via your favourite search engine.
>>> Try "varnish cache include syntax".
>
> On 16 July 2012 07:23, Nick Tailor <nick.tailor [at] gmail> wrote:
>> Sheesh, just tell him.
>
> Ok, but you fed him the first time - he's your responsibility when he
> comes back hungry for more trivially discoverable information ... ;-)
>
> J
>
> --
> Jonathan Matthews
> Oxford, London, UK
> http://www.jpluscplusm.com/contact.html
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc [at] varnish-cache
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc


abraham.sustaita at buscacorp

Jul 16, 2012, 9:13 AM

Post #6 of 8 (174 views)
Permalink
Re: How to include inside vcl_recv [In reply to]

Nick, thanks a lot, you were really helpfull. Jonathan, I don't need for
anybody to "feed" me. I google it in the first place, but my research only
show me how to include files outside the rules, if you read carefully my
question you will see it. The question was how to do it from other file and
inside the rule "sub vcl_recv". However thanks for your "answer", since
because of that Nick told me the answer.

2012/7/16 Nick Tailor <nick.tailor [at] gmail>

> Hahhahaha, google is not always your friend. It will give you like 10
> different answers for things. Sometimes it's easier and time efficient to
> just tell them.
>
> Sent from my iPhone
>
> On Jul 16, 2012, at 4:29 AM, Jonathan Matthews <contact [at] jpluscplusm>
> wrote:
>
> >> On Jul 15, 2012, at 1:57 PM, Jonathan Matthews <contact [at] jpluscplusm>
> wrote:
> >>
> >>> On 9 July 2012 17:38, Abraham Cruz Sustaita
> >>> <abraham.sustaita [at] buscacorp> wrote:
> >>>> How should I include a file inside vcl_recv?
> >>>
> >>> I think the reason you've had no replies to this mail is because the
> >>> answer is eminently discoverable via your favourite search engine.
> >>> Try "varnish cache include syntax".
> >
> > On 16 July 2012 07:23, Nick Tailor <nick.tailor [at] gmail> wrote:
> >> Sheesh, just tell him.
> >
> > Ok, but you fed him the first time - he's your responsibility when he
> > comes back hungry for more trivially discoverable information ... ;-)
> >
> > J
> >
> > --
> > Jonathan Matthews
> > Oxford, London, UK
> > http://www.jpluscplusm.com/contact.html
> >
> > _______________________________________________
> > varnish-misc mailing list
> > varnish-misc [at] varnish-cache
> > https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc [at] varnish-cache
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>


contact at jpluscplusm

Jul 16, 2012, 9:49 AM

Post #7 of 8 (173 views)
Permalink
Re: How to include inside vcl_recv [In reply to]

On 16 July 2012 13:43, Nick Tailor <nick.tailor [at] gmail> wrote:
> Hahhahaha, google is not always your friend. It will give you like 10 different answers for things. Sometimes it's easier and time efficient to just tell them.

Agreed. In fact, I'd say it's /always/ more short-term time-efficient
just to tell people an answer if you have it. But doing so doesn't
lead to them learning anything more than that specific bit of
information.

I find the Varnish-misc mailing list to be rather clueful and, unlike
the lists for certain other great bits of F/LOSS, there's usually a
very low level of "solve my problem for me" requests. Read the nginx
list for myriad examples of that pattern in action - it's pretty
boring to be around.

I'm not criticising you for providing the answer in the way you did -
I just personally have a low tolerance for list noise that doesn't do
anything more than advance the state of someone's knowledge purely
linearly. Training people to use the search (http://google.com) and
documentation (https://www.varnish-cache.org/docs/3.0/) tools already
at their disposal is always a good thing, IMHO. Even if it's actually
"easier" just to serve the answer up on a plate instead :-)

Jonathan
--
Jonathan Matthews
Oxford, London, UK
http://www.jpluscplusm.com/contact.html

_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc


contact at jpluscplusm

Jul 16, 2012, 9:54 AM

Post #8 of 8 (176 views)
Permalink
Re: How to include inside vcl_recv [In reply to]

On 16 July 2012 17:13, Abraham Cruz Sustaita
<abraham.sustaita [at] buscacorp> wrote:
> Nick, thanks a lot, you were really helpfull. Jonathan, I don't need for
> anybody to "feed" me. I google it in the first place, but my research only
> show me how to include files outside the rules, if you read carefully my
> question you will see it. The question was how to do it from other file and
> inside the rule "sub vcl_recv". However thanks for your "answer", since
> because of that Nick told me the answer.

The only documentation I can see on this subject
(https://www.varnish-cache.org/docs/3.0/reference/vcl.html) explicitly
says "[t]he contents of another VCL file may be inserted at any point
in the code by using the include keyword", which I believe should have
answered your question, Abraham.

That page was the second result you would have found when searching
for "varnish cache include syntax", and the first non-trivial one.
That's why I suggested those precise words for you to search for.

Glad you resolved your issue either way.

Jonathan
--
Jonathan Matthews
Oxford, London, UK
http://www.jpluscplusm.com/contact.html

_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Varnish misc RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.