download default nginx template and set hosts file to avoid OID Generation Failed error in AWS