Here is a little example about configuring Varnish in the fabelier's dev server to host a project. If any question, ask Julien (julien at palard point fr)
# YourName : YourComment... backend YourStuff { .host = "127.0.0.1"; .port = "8090"; }
if (req.http.host == "yourstuff.dev.fabelier.org") { set req.backend = YourStuff; }
if (req.backend == YourStuff) { set beresp.ttl = 300s; }
$ /etc/init.d/varnish reload Reloading HTTP accelerator: varnishdCommand failed with error code 106
$ /usr/sbin/varnishd -Cf /etc/varnish/default.vcl Message from VCC-compiler: Syntax error at (input Line 29 Pos 19) if (req.http.host == yourstuff.dev.fabelier.org") ------------------#------------------
Fix it, reload, enjoy !
File too big to be handled by Varnish ? a quick fix is to add :
if (req.url ~ "\.zip$") { return (pipe); }