Only apply nginx vhost config if domain is provided