Fixed:
External IP address bound to SSL binding, now internal dedicated IP SSL Tab only to show website name and domain default choice to include global dns zone during site creation is unchecked When switching SSL enabled site to shared, certificate to be deleted When deleted SSL enabled site, certificate to be deleted Switch IP Mode added to the hosting plan
This commit is contained in:
parent
d35094412d
commit
83886b94e2
9 changed files with 84 additions and 25 deletions
|
@ -127,7 +127,7 @@
|
|||
<value>Cancel</value>
|
||||
</data>
|
||||
<data name="chkIgnoreGlobalDNSRecords.Text" xml:space="preserve">
|
||||
<value>Ignore Zone Template</value>
|
||||
<value>Include Zone Template</value>
|
||||
</data>
|
||||
<data name="lblAspNetVersion.Text" xml:space="preserve">
|
||||
<value>ASP.NET Version:</value>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<td class="Normal" nowrap rowspan="2"></td>
|
||||
<td class="Normal">
|
||||
<asp:CheckBox ID="chkIgnoreGlobalDNSRecords" runat="server" meta:resourcekey="chkIgnoreGlobalDNSRecords"
|
||||
Text="This hostname only, Ignore Zone Template" Checked="True" />
|
||||
Text="Include Zone Template" Checked="True" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -107,7 +107,7 @@ namespace WebsitePanel.Portal
|
|||
int packageAddressId = rbDedicatedIP.Checked ? Utils.ParseInt(ddlIpAddresses.SelectedValue, 0) : 0;
|
||||
|
||||
siteItemId = ES.Services.WebServers.AddWebSite(PanelSecurity.PackageId, txtHostName.Text.ToLower(), domainsSelectDomainControl.DomainId,
|
||||
packageAddressId, chkIgnoreGlobalDNSRecords.Checked);
|
||||
packageAddressId, !chkIgnoreGlobalDNSRecords.Checked);
|
||||
|
||||
if (siteItemId < 0)
|
||||
{
|
||||
|
|
|
@ -197,8 +197,13 @@ namespace WebsitePanel.Portal
|
|||
|
||||
dedicatedIP.Visible = site.IsDedicatedIP;
|
||||
sharedIP.Visible = !site.IsDedicatedIP;
|
||||
cmdSwitchToDedicatedIP.Visible = (ddlIpAddresses.Items.Count > 0);
|
||||
|
||||
|
||||
PackageContext cntx = PackagesHelper.GetCachedPackageContext(PanelSecurity.PackageId);
|
||||
if (Utils.CheckQouta(Quotas.WEB_ALLOWIPADDRESSMODESWITCH, cntx))
|
||||
cmdSwitchToDedicatedIP.Visible = (ddlIpAddresses.Items.Count > 0);
|
||||
else
|
||||
cmdSwitchToDedicatedIP.Visible = cmdSwitchToSharedIP.Visible = false;
|
||||
|
||||
|
||||
litFrontPageUnavailable.Visible = false;
|
||||
tblSharePoint.Visible = site.SharePointInstalled;
|
||||
|
@ -1016,6 +1021,7 @@ namespace WebsitePanel.Portal
|
|||
|
||||
protected void cmdSwitchToDedicatedIP_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
sharedIP.Visible = false;
|
||||
switchToDedicatedIP.Visible = true;
|
||||
}
|
||||
|
|
|
@ -107,23 +107,11 @@ namespace WebsitePanel.Portal
|
|||
}
|
||||
}
|
||||
|
||||
private void BindListOfAvailableSslDomains(ServerBinding[] siteBindings, SSLCertificate[] siteCertificates, string websiteName = "")
|
||||
private void BindListOfAvailableSslDomains(string websiteName, string domainName)
|
||||
{
|
||||
lstDomains.Items.Clear();
|
||||
//
|
||||
foreach (ServerBinding binding in siteBindings)
|
||||
{
|
||||
//
|
||||
if (binding.IP.ToString().Length > 0 && binding.Host.Length == 0)
|
||||
{
|
||||
lstDomains.Items.Add(new ListItem(websiteName, websiteName));
|
||||
lstDomains.Items.Add(new ListItem(String.Format("www.{0}", websiteName), String.Format("www.{0}", websiteName)));
|
||||
}
|
||||
else
|
||||
{
|
||||
lstDomains.Items.Add(new ListItem(binding.Host, binding.Host));
|
||||
}
|
||||
}
|
||||
lstDomains.Items.Add(new ListItem(websiteName, websiteName));
|
||||
lstDomains.Items.Add(new ListItem(domainName, domainName));
|
||||
}
|
||||
|
||||
public void BindWebItem(WebVirtualDirectory item)
|
||||
|
@ -144,8 +132,20 @@ namespace WebsitePanel.Portal
|
|||
SSLCertificate[] certificates = ES.Services.WebServers.GetCertificatesForSite(item.Id);
|
||||
|
||||
SSLNotInstalled.Visible = true;
|
||||
|
||||
DomainInfo[] domains = ES.Services.Servers.GetDomains(PanelSecurity.PackageId);
|
||||
string zoneName = string.Empty;
|
||||
foreach (DomainInfo d in domains)
|
||||
{
|
||||
if (d.WebSiteId == SiteId)
|
||||
{
|
||||
zoneName = d.ZoneName;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
BindListOfAvailableSslDomains(webSite.Bindings, certificates, webSite.Name);
|
||||
BindListOfAvailableSslDomains(webSite.Name, zoneName);
|
||||
|
||||
if (certificates.Length > 0)
|
||||
{
|
||||
|
@ -568,7 +568,20 @@ namespace WebsitePanel.Portal
|
|||
|
||||
SSLNotInstalled.Visible = true;
|
||||
//
|
||||
BindListOfAvailableSslDomains(item.Bindings, certificates, item.Name);
|
||||
|
||||
DomainInfo[] domains = ES.Services.Servers.GetDomains(PanelSecurity.PackageId);
|
||||
string zoneName = string.Empty;
|
||||
foreach (DomainInfo d in domains)
|
||||
{
|
||||
if (d.WebSiteId == item.Id)
|
||||
{
|
||||
zoneName = d.ZoneName;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
BindListOfAvailableSslDomains(item.Name, zoneName);
|
||||
|
||||
if (certificates.Length > 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue