IIS7下設置https主機名灰色無法修改


打開iis綁定域名時,點擊綁定彈出綁定框,在選擇類型為“https”的時候,主機名為灰色的無法填寫

解決方法:

1. 選擇https,在選擇相應的SSL證書,點擊確定

2. 打開C:\Windows\system32\inetsrv\config\applicationHost.config

3. 找到如下節點位置:

<site name="hs.hsglaser.com" id="8">
                <application path="/">
                    <virtualDirectory path="/" physicalPath="D:\web\hongshi" />
                </application>
                <bindings>
                    <binding protocol="http" bindingInformation="*:80:hs.hsglaser.com" />
                    <binding protocol="http" bindingInformation="*:80:www.hsglaser.com" />
                    <binding protocol="https" bindingInformation="*:443:" />
                   
                </bindings>
            </site>

以“hsglaser.com”域名為例

將“<binding protocol="https" bindingInformation="*:443:" />” 改為

<binding protocol="https" bindingInformation="*:443:hsglaser.com" />

注意:因為這個是系統文件可也能直接修改不了,如果修改不了可以把這個文件復制到桌面修改后再替換回去

4. 修改完畢后,刷新一下網站,就可以看到域名出現了,訪問https://hsglaser.com 試一下

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM