create redirect server correctly