nginx配置wss

更新时间:2023-05-29 05:10:21 阅读: 评论:0

nginx配置wss upstream websocket {
rver 127.0.0.1:9501;#wss配置代理到ws:127.0.0.1:9501
}注意的特点
rver {
青椒玉米listen80;
listen443 ssl;
rver_;
####ssl须使⽤openssl⽣成
ssl_certificate /Urs/apple/ssl/aliyun_rver.pem;
ssl_certificate /Urs/apple/;
ssl_certificate_key /Urs/apple/ssl/aliyun_rver.key;
ssl_certificate_key /Urs/apple/ssl/rver.key;
ssl_ssion_cache shared:SSL:1m;
ssl_ssion_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_rver_ciphers on;
>##openssl⽣成
#rewrite ^(.*)$ $host$1 permanent;
#chart koi8-r;
if ($time_iso8601 ~ "^(\d{4})-(\d{2})-(\d{2})") {
t $year $1;
t $month $2;
t $day $3;
}
access_log access-$year-$month-$day.log.log main;
index index.html index.htm index.php;
##访问域名wss:///wss  即可
location /wss {
  proxy_pass websocket;##代理到上⾯的ip
  proxy_http_version 1.1;
  proxy_t_header Upgrade $http_upgrade;
  proxy_t_header Connection "Upgrade";
}
location / {
root /Urs/apple/Documents/workspace/meigou_api/public;
# index index.html index.htm index.php;
try_files $uri$uri/ /index.php?$query_string;
client_max_body_size 50m;
转正工作总结
limit_req zone=one burst=5 nodelay;
}
#error_page 404 /404.html;
# redirect rver error pages to the static page /50x.html
海龙的功效与作用
#
error_page 500502503504 /50x.html;
location = /50x.html {
root html;
}
苹果手机怎么更新# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
手机数据线连接电脑怎么传文件#location ~ \.php$ {
# proxy_pass 127.0.0.1;
#}
# pass the PHP scripts to FastCGI rver listening on 127.0.0.1:9000
#
location ~ \.php$ {
root /Urs/apple/Documents/workspace/meigou_api/public;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
client_max_body_size 50M;
}
节能标语# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#狗狗睡觉
#location ~ /\.ht {
# deny all; #}
}

本文发布于:2023-05-29 05:10:21,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/82/804380.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:手机   连接   电脑   转正
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图