我已經與這個有這麼遠,撞了南牆多個HTTPS網站。我在IIS中設置4的網站在一臺服務器上:IIS與不同的主機頭
默認Web站點(myserver.mydomain.com) d:\網站\默認\
蘋果 (apple.mydomain.com) d:\網站\蘋果\
橙色(orange.mydomain.com) d:\網站\橙\
梨(orange.mydomain.com) d:\網站\梨\
我已經使用命令行按照配置的站點綁定this guide,它現在看起來像我想要的。當我做APPCMD列表網站它返回下列信息:
SITE "Default Web Site" (id:1,bindings:net.tcp/808:*,net.pipe/*,net.msmq/localhost,msmq.formatname/localhost,https/*:443:,state:Started)
SITE "apple" (id:2,bindings:https/*:443:apple.syfire.gov.uk,state:Started)
SITE "orange" (id:3,bindings:https/*:443:orange.syfire.gov.uk,state:Started)
SITE "pear" (id:4,bindings:https/*:443:pear.syfire.gov.uk,state:Started)
結果:
「myserver.mydomain.com」 儘管有是一個默認文檔配置(索引返回錯誤
Server Error in Application "DEFAULT WEB SITE" HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory.
。 HTML)。 編輯:如果我切換目錄瀏覽在它顯示D:\網站\默認\的內容(因爲它應該),我可以導航到index.html,但是當它關閉似乎無法找到文件本身。「apple.mydomain.com」工作正常,並顯示存儲在
D:\websites\apple\
默認頁面。「orange.mydomain.com」和「pear.mydomain.com」返回錯誤
Server not found
(Firefox),Internet Explorer cannot display the webpage
(IE)。
我敢肯定我錯過了這個操作的關鍵點!謝謝。