国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

Apache 代理 SSL 協(xié)議 前端握手失敗

啦啦龍

使用的是 phpstudy 中的 php apache

https-ssl.cof 下

Listen 443
<VirtualHost *:443>
DocumentRoot "xxx\xxx\xxx\xxx"
    ServerName 域名
    ServerAlias 
    # Proxy Config

    SSLProxyEngine on

    ProxyRequests Off
    ProxyPass /wss ws://127.0.0.1:8383
    ProxyPassReverse /wss ws://127.0.0.1:8383

  <Directory "C:\phpStudy\WWW\plane">
      Options FollowSymLinks ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
      Require all granted
  </Directory>
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP: MEDIUM
SSLEngine on
SSLHonorCipherOrder on
SSLCertificateFile "C:\phpStudy\Apache\cert\public.pem"
SSLCertificateKeyFile "C:\phpStudy\Apache\cert\214952355360180.key"
SSLCertificateChainFile "C:\phpStudy\Apache\cert\chain.pem"
</VirtualHost>

start_gateway.php 下

<?php 
// 自動(dòng)加載類
require_once __DIR__ . '/../../vendor/autoload.php';

// gateway 進(jìn)程,這里使用Text協(xié)議,可以用telnet測試
$gateway = new Gateway("websocket://0.0.0.0:8383");

前端請求:

    // 證書是會檢查域名的,請使用域名連接
    ws = new WebSocket("wss://域名/wss");

    ws.onopen = function() {
        alert("連接成功");
        ws.send('tom');
        alert("給服務(wù)端發(fā)送一個(gè)字符串:tom");
    };
    ws.onmessage = function(e) {
        alert("收到服務(wù)端的消息:"   e.data);
    };
3581 2 0
2個(gè)回答

啦啦龍

好了 配置問題 真是操蛋

  • 暫無評論
啦啦龍

[attach]1219[/attach]

Apache 里面突然少了這個(gè) 真是 想哭

  • 暫無評論
年代過于久遠(yuǎn),無法發(fā)表回答
??