Converting config to use inline

Gaute Amundsen gaute at pht.no
Wed Jun 3 15:55:56 CEST 2009


Hi

After removing comments, how would I have to process the normal config file to 
be able to load it as a string using vcl.inline?

I have tried a number of varieties, but often as not, varnish will hang, or 
crash...

This line from a test I found fails as well.

"\n\tbackend b { .host = \"127.0.0.1\"; }\n\tacl a {\n\t\t\"1.2.3.4\"/31;
\n\t\t\"1.2.3.4\"/31;\n\t}\n\tsub vcl_recv { if (client.ip ~ a) { pass; } }\n"

I could make it work by pasting into telnet, but not with varnishadm, or 
python telnetlib for that matter.

Any suggestions?


Regards
Gaute Amundsen

-- 
Programmerer - Pixelhospitalet AS
Prinsessealleen 50, 0276 Oslo 
Tlf. 24 12 97 81 - 9074 7344



More information about the varnish-misc mailing list