tencent cloud

Feedback

What Should I Do If the Host Name Field Is Uneditable in the IIS Manager?

Last updated: 2024-03-06 18:01:41

    What should I do if the host name field is uneditable in IIS Manager?

    When installing a certificate in IIS Manager, after you import a PFX certificate file and set Type to https during website binding, the Host name field becomes uneditable. You can use the following method to address this problem.

    Scenario

    If Type is set to https during certificate installation in IIS Manager, the Host name field becomes uneditable after the SSL certificate is selected, as shown in the following example.
    

    Solution

    1. Open the applicationHost.config file in C:\\Windows\\system32\\inetsrv\\config\\applicationHost.config.
    2. Make the following modifications:
    Note:
    tencent.com is used as the domain name in the following example.
    Replace <binding protocol="https" bindingInformation="*:443:" /> in the following sample code with <binding protocol="https" bindingInformation="*:443:tencent.com" />.
    If you cannot modify the file directly, try modifying it as an admin, or copy and paste it to your desktop, modify it, and then replace the original file with the modified one.
    <site name="example.tencent.com" id="8">
    <application path="/">
    <virtualDirectory path="/" physicalPath="D:\\web\\tencent" />
    </application>
    <bindings>
    <binding protocol="http" bindingInformation="*:80:example.tencent.com" />
    <binding protocol="http" bindingInformation="*:80:www.tencent.com" />
    <binding protocol="https" bindingInformation="*:443:" />
    </bindings>
    </site>
    3. After saving the modified file, bind the website again.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support