Skip to content

Instantly share code, notes, and snippets.

@erichocean
Created July 22, 2008 23:09
Show Gist options
  • Save erichocean/1362 to your computer and use it in GitHub Desktop.
Save erichocean/1362 to your computer and use it in GitHub Desktop.
sprout-py.vcl
backend sproutcore {
set backend.host = "localhost";
set backend.port = "4020";
}
backend py {
set backend.host = "localhost";
set backend.port = "8000";
}
sub vcl_recv {
if (req.url ~ "^/py/.*") {
set req.backend = py;
set req.url = regsub(req.url, "/py/(.*)", "/$1");
}
else {
set req.backend = sproutcore;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment