nginx not allowing server_name directive to be set dynamically

So, I have updated it with direct replacement in the template.