0
在本地服務器我DONOT面對這個問題,但在生產服務器已經HTTPS不起作用的WebSocket對HTTPS
Firefox ne peut établir de connexion avec le serveur à l’adresse
wss://kergafa.com:8081/.
我曾嘗試多種時間,但無法找到/明白問題所在?
我conf.yml
gos_web_socket:
server:
port: 8081 #The port the socket server will listen on
host: kergafa.com #The host ip to bind to
router:
resources:
- '@SkiesAdherentBundle/Resources/config/pubsub/routing.yml
client:
firewall: main
session_handler: '@session.handler.pdo'
pushers:
wamp:
host: kergafa.com
port: 8081
當我啓動服務器:
[2017-01-06 04:33:12] websocket.INFO: Starting web socket
[2017-01-06 04:33:12] websocket.INFO: Register periodic callback Gos\Bundle\WebSocketBundle\Periodic\PdoPeriodicPing, executed each 20 seconds
[2017-01-06 04:33:12] websocket.INFO: Launching Ratchet on kergafa.com:8081 PID: 7698
所以其作品
ctunnel的conf
[websockets]
accept = 8080
connect = kergafa.com:8081
它說:
[Started: /etc/stunnel/stunnel.conf] stunnel.
grep的8080結果
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 7694/stunnel4
你有正確的複製/粘貼的錯誤,但它不是我的問題。謝謝 –