打开/关闭搜索
搜索
打开/关闭菜单
通知
打开/关闭个人菜单
查看“Nginx/ssh”的源代码
来自OSSmedia
查看
阅读
查看源代码
查看历史
associated-pages
页面
讨论
更多操作
←
Nginx/ssh
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
<syntaxhighlight lang="nginx"> stream{ upstream ssh { server 127.0.0.1:22; } upstream web { server 127.0.0.1:80; } map $ssl_server_name $srv_name { ~(.+)\.ssh ssh; default web; } server { listen port ssl; proxy_pass $srv_name; ssl_preread on; ssl_certificate /etc/letsencrypt/live/ossmedia.cn/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/ossmedia.cn/privkey.pem; # managed by Certbot } } </syntaxhighlight> <syntaxhighlight lang="nginx"> stream{ upstream ssh { server 127.0.0.1:22; } upstream web { server 127.0.0.1:80; } map $ssl_preread_protocol $upstream { default web; "" ssh; "TLSv1.0" web; "TLSv1.1" web; "TLSv1.2" web; "TLSv1.3" web; } server { listen port; proxy_pass $upstream; ssl_preread on; } } </syntaxhighlight>
返回
Nginx/ssh
。