Fix Bug 863366 - Add support for publishing to custom domain and user subdomains