Fixed: Upon migration ensured that Domain and Pointers are configured as
required for the new version. The website pointer added as a dedicated record. The domain alias made visible as a top-level or sub-domain. Fixed duplicate pointers when reconstructing pointers for legacy sites. Legacy sites do not have all their hostheaders stored within the domains table
This commit is contained in:
parent
18dd0d9096
commit
6795a0feb1
2 changed files with 63 additions and 6 deletions
|
@ -1143,13 +1143,18 @@ namespace WebsitePanel.EnterpriseServer
|
|||
if (!string.IsNullOrEmpty(b.Host))
|
||||
{
|
||||
domain.DomainName = b.Host;
|
||||
int domainID = ServerController.AddDomain(domain, domain.IsInstantAlias, false);
|
||||
DomainInfo domainTmp = ServerController.GetDomain(domainID);
|
||||
if (domainTmp != null)
|
||||
|
||||
DomainInfo domainTmp = ServerController.GetDomain(domain.DomainName);
|
||||
if (!((domainTmp != null) && (domainTmp.WebSiteId == siteItemId)))
|
||||
{
|
||||
domainTmp.WebSiteId = siteItemId;
|
||||
domainTmp.ZoneItemId = domain.ZoneItemId;
|
||||
ServerController.UpdateDomain(domainTmp);
|
||||
int domainID = ServerController.AddDomain(domain, domain.IsInstantAlias, false);
|
||||
domainTmp = ServerController.GetDomain(domainID);
|
||||
if (domainTmp != null)
|
||||
{
|
||||
domainTmp.WebSiteId = siteItemId;
|
||||
domainTmp.ZoneItemId = domain.ZoneItemId;
|
||||
ServerController.UpdateDomain(domainTmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue