handle sub domain requests