http://razvantudorica.com/04/switching-between-branches-using-nginx-part-1