[libwebsockets]lighttpd+libwebsockets支持ws和wss配置方法说明

 libwebsockets介绍

         libwebsockets是一款轻量级用来开发服务器和客户端的C库。它不仅支持ws,wss还同时支持http与https,可以轻轻松松结合openssl等库来实现ssl加密。

官方参考链接:

https://libwebsockets.org/

lighttpd版本

lighttpd/1.4.59 (ssl) - a light and fast webserver
usage:
 -f <name>  filename of the config-file
 -m <name>  module directory (default: /usr/lib)
 -i <secs>  graceful shutdown after <secs> of inactivity
 -1         process single (one) request on stdin socket, then exit
 -p         print the parsed config-file in internal form, and exit
 -t         test config-file syntax, then exit
 -tt        test config-file syntax, load and init modules, then exit
 -D         don't go to background (default: go to background)
 -v         show version
 -V         show compile-time features
 -h         show this help

lighttpd配置

配置安全策略需要添加ws:wss:配置

var.response_header_policy = (
        
      

相关推荐

  1. Netty websocket配置wss

    2024-01-31 23:22:03       33 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-31 23:22:03       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-31 23:22:03       100 阅读
  3. 在Django里面运行非项目文件

    2024-01-31 23:22:03       82 阅读
  4. Python语言-面向对象

    2024-01-31 23:22:03       91 阅读

热门阅读

  1. 【算法题】79. 单词搜索

    2024-01-31 23:22:03       44 阅读
  2. 学习MySQL中的“IS NULL”优化

    2024-01-31 23:22:03       50 阅读
  3. MySQL语句 | MD5()的使用

    2024-01-31 23:22:03       50 阅读
  4. 面试 CSS 框架八股文十问十答第三期

    2024-01-31 23:22:03       50 阅读
  5. 标签自动滚动到底部(实时滚动)

    2024-01-31 23:22:03       57 阅读
  6. Springboot 校验工具类

    2024-01-31 23:22:03       52 阅读
  7. 网络安全产品之认识防病毒软件

    2024-01-31 23:22:03       63 阅读
  8. 【C语言】(12)指针

    2024-01-31 23:22:03       53 阅读
  9. 242. 有效的字母异位词(力扣LeetCode)

    2024-01-31 23:22:03       56 阅读
  10. Vue之在iframe标签里刷新外部页面

    2024-01-31 23:22:03       60 阅读