2021-06-10 1 分钟 0.1 k0次访问
常用配置
nginx转发端口1 2 3 4 5 6 7 8
| server{ listen 80; server_name test.sakikun.com;
location / { proxy_pass http://61.153.125.171/:2189; # 转发规则 } }
|
nginx转发端口 ssl认证1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| server{ listen 443; server_name steam30off.sakikun.com; ssl on; #从腾讯云获取到的第一个文件的全路径 ssl_certificate /etc/nginx/conf.d/key/1_steam30off.sakikun.com_bundle.crt; #从腾讯云获取到的第二个文件的全路径 ssl_certificate_key /etc/nginx/conf.d/key/2_steam30off.sakikun.com.key; ssl_session_timeout 5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE; ssl_prefer_server_ciphers on; location / { proxy_pass http://127.0.0.1:2191; # 转发规则 } }
|