Rewrite nginx.conf on domain changes