properly handling domain for nginx conf