If the HTTPS host name set under Internet Information Services (IIS) is grayed out and cannot be edited, it typically indicates that the site is bound to a certificate that does not support Server Name Indication (SNI). SNI allows multiple websites to share the same IP address but with different host names, each with its own SSL/TLS certificate.
Here are steps to resolve this issue:
Check Certificate Binding: Ensure that the certificate bound to the site supports SNI. If it doesn't, you'll need to obtain a new certificate that does.
Update IIS Configuration:
Obtain a New Certificate:
Example:
example.com and you want to add www.example.com to the same IP address. If the current certificate only supports example.com, you'll need a new certificate that supports both example.com and www.example.com.Recommendation for Cloud Services:
By ensuring your certificate supports SNI and properly configuring your IIS bindings, you should be able to edit the HTTPS host name as needed.