Created
July 22, 2008 23:09
-
-
Save erichocean/1362 to your computer and use it in GitHub Desktop.
sprout-py.vcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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