Nginx configuration for dynamic domain and subdomain