
Nginx
Nginx相关技术
Zerooooooooooooooooo
这个作者很懒,什么都没留下…
展开
-
Nginx https 证书自己生成
转载:Nginx https 证书自己生成 //1. 最好切换到nginx/conf 目录下执行, openssl req -new -x509 -nodes -out server.crt -keyout server.key //2. 修改nginx配置文件: vi nginx/conf/nginx.conf //内容如下: 修改nginx配置文件(在http模块里加): server{ listen 443 ssl; server_name www.abc.com;转载 2021-06-07 18:40:51 · 507 阅读 · 0 评论 -
Stomp以wss方式连接websocket
Stomp以wss方式连接websocket 一、问题描述 项目中遇到使用stomp连接websocket,当使用ws://ip:port/ws协议来连接时没有问题,但是放到服务器上却报如下错误: Mixed Content: The page at ‘https://ip:port/‘ was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint ‘ws://{ip}:{port}/‘. This原创 2021-07-02 11:33:18 · 2306 阅读 · 3 评论