Fixes sni-related bug where customers and resellers are not allowed to see website properties.
This commit is contained in:
parent
94d79fefd4
commit
750587f38d
4 changed files with 16 additions and 9 deletions
|
@ -278,15 +278,7 @@ namespace WebsitePanel.Portal
|
|||
webSitesHeliconZooControl.BindWebItem(site);
|
||||
|
||||
// If SNI is enabled on the server, we do allow for SSL even if site not has dedicated Ip
|
||||
var sniEnabled = false;
|
||||
var serverSettings = ES.Services.Servers.GetServiceSettings(site.ServiceId);
|
||||
var sniEnabledItem = serverSettings.FirstOrDefault(s => s.StartsWith("sslusesni"));
|
||||
if (sniEnabledItem != null)
|
||||
{
|
||||
sniEnabled = Utils.ParseBool(sniEnabledItem.Split('=')[1], false);
|
||||
}
|
||||
|
||||
if (site.IsDedicatedIP || sniEnabled)
|
||||
if (site.IsDedicatedIP || site.SniEnabled)
|
||||
{
|
||||
AllowSsl = true;
|
||||
WebsitesSSLControl.Visible = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue