2012-12-21 149 views
0

我試圖設置韻律通過https與糖果一起工作。我試着配置SSL和所有列出的步驟來獲取工作,但由於某些原因,當我嘗試https://servername.com:5280/http-bind超時與韻律日誌中的以下出現:通過HTTPS連接到Prosody

server.lua: accepted new client connection from servername:23366 to 5280 
server.lua: accepted new client connection from servername:10667 to 5280 
server.lua: client servername:23366 read error: closed 
server.lua: closed client handler and removed socket from list 

當我試圖做同樣的通過http工作:http://servername.com:5280/http-bind結果於: 「你真的不像我的BOSH客戶......你想要什麼?」

回答

2

注:在最近的版本中,韻律供應HTTPS在默認情況下端口5281,所以這個答覆是沒有不再相關

您正在https端口上嘗試https。這不起作用。您可能需要爲該端口配置SSL,或者使用SSL設置另一個端口。頁Setting up a BOSH server描述如何做到這一點:

bosh_ports = { 
       { 
        port = 5280; 
        path = "http-bind"; 
       }, 
       { 
        port = 5281; 
        path = "http-bind"; 
        ssl = { 
          key = "bosh.key"; 
          certificate = "bosh.crt"; 
          } 
       } 
       } 
+0

感謝您的答覆!我看到了,但我認爲我讀過你可以配置端口5280來接受ssl。 –

+0

你可以,但是你不能在同一個端口同時有plain和ssl。 – Zash

相關問題