[#62908364] Fix nginx rewrite

Replace rewrite with return a la best practise
Replace server name vhost with default vhost
Fix quoting around particular variables
Ensure purging of nginx conf.d directory