Web Connection
Multiple hostnames for a WWC site
Gravatar is a globally recognized avatar based on your email address. Multiple hostnames for a WWC site
  Richard Kaye
  All
  Aug 19, 2020 @ 08:06am

Hi Rick,

We're in the midst of a rebranding exercise which will involve changing the main URL/hostname for our WWC app (i.e. fredflintstone.com is changing to barneyrubble.com). I added the new bindings to my staging site and it just worked. But I'm wondering if I have to/should be changing the host name refs in the INI and code?

TIA

Gravatar is a globally recognized avatar based on your email address. re: Multiple hostnames for a WWC site
  Rick Strahl
  Richard Kaye
  Aug 19, 2020 @ 12:25pm

There's nothing in the Web Connection running application that should be affected by a different hostname, unless your application actually hardcodes URLs which hopefully you don't 😄

Where it might affect you is in the auto-configuration - if you use multiple hostnames the IIS Site Id for auto configuration will likely change, so you'll have to adjust the IISPath in the startup ini file.

[ServerConfig]
Virtual=TestProject
ScriptMaps=wc,wcs,md,tp

# this one - the number for the SITE ID will be different
IISPath=IIS://localhost/w3svc/1/root
Gravatar is a globally recognized avatar based on your email address. re: Multiple hostnames for a WWC site
  Richard Kaye
  Rick Strahl
  Aug 19, 2020 @ 01:26pm

Thanks, Rick. I'm not recreating the site in IIS, just adding new bindings with the updated URL. So far it works just fine. I've got one property I'm setting in the INI to the base URL that I need to adjust but that's all. Otherwise no, I have no hard-coded references in templates or such.

© 1996-2024