Home > Forum > Installation > Webcon Designer Studio works only in localhost address

Webcon Designer Studio works only in localhost address
0

I installed a new instance of webcon.
In IIS I have new site with 3 bindings
webcon-test.domain:.com 80
webcon-test.domain.com : 443
empty :80

Auth provider AD

I'm not able to login to portal from the machine where webcon is installed via https/http://webcon-test.domain.com
But link http://localhost works fine

When I change a server and try to login via https/http://webcon-test.domain.com everythinks works fine.

Portal address - https://webcon-test.domain.com 

MVP

Hi Bartosz,

in case you want to apply method 1 you could also try out this script.

I'm 90% sure that it works. There was a time, when the property value has been written incorrectly and we need to open the value and save it to fix something with the line breaks.

The alternative would be to not use the Designer Studio on the server at all. There's really no need for it and will just take up RAM.

Best regards,
Daniel

<#
Adding loopback exception for all bindings in IIS as well as the computer name.
There's no check what values are currently there.
If there are any, they will be replaced.
#>
#Note that you should be running PowerShell as an Administrator
$currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())
if (!$currentPrincipal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)){
throw "Must be executed as admin"
}

Import-Module Webadministration
#Using a hashtable to make sure we have no duplicate names
$urlsToExclude =@{}
$urlsToExclude[$env:COMPUTERNAME]= $true

$sites = [array](Get-ChildItem -Path IIS:\Sites)
foreach ($site in [array]$sites){
#$site = $sites[0]
Write-Host "Getting binding from site $($site.name)" -BackgroundColor cyan
foreach ($binding in $site.bindings.Collection){
Write-Host "Extracting hostname of '$($binding.bindingInformation)' from site $($site.name)" -BackgroundColor Cyan
$hostname = $binding.bindingInformation.Substring($binding.bindingInformation.LastIndexOf(":")+1).Trim()
if (![string]::IsNullOrEmpty($hostname) -and !($hostname.contains("localhost"))){

$urlsToExclude[$hostname.Trim()] = $true
}
}
}
Write-Host "Urls to exclude: '$($urlsToExclude.keys)'"
New-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0" -Name “BackConnectionHostNames” -value $urlsToExclude.keys -PropertyType ([Microsoft.Win32.RegistryValueKind]::MultiString) -Force
Read-Host -Prompt "Added loopback check exceptions, press key to exit."

Privacy overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognizing you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.


To see a full list of the cookies we use and learn more about their purposes, visit our Privacy Policy.