Skip to content

Instantly share code, notes, and snippets.

@cturra
Created September 18, 2014 16:02

Revisions

  1. cturra created this gist Sep 18, 2014.
    15 changes: 15 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    $host = http.getHostHeader();
    $path = http.getPath();

    if (string.containsI($host, "aus3.mozilla.org")){

    if (
    string.containsI($path, "/beta/") ||
    string.containsI($path, "/beta-localtest/") ||
    string.containsI($path, "/beta-cdntest/")
    ){

    pool.select("aus4-prod-https");
    }

    }