Skip to content

Instantly share code, notes, and snippets.

@nataliepo
Created February 16, 2011 22:09
Show Gist options
  • Save nataliepo/830363 to your computer and use it in GitHub Desktop.
Save nataliepo/830363 to your computer and use it in GitHub Desktop.
# handle vhosts here
if (req.http.host ~ "^(www.)?staging-seriouseats.com$") {
set req.http.host = "www.staging-seriouseats.com";
set req.backend = staging;
}
else if (req.http.host ~ "^newyork.staging-seriouseats.com$") {
set req.backend = staging;
}
else {
set req.backend = apache;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment