[#50201635] support hostname directive in layouts