VPS自留地 头像

消息来源频道

VPS自留地

@zx_vps

频道313 位成员公开可见0 人在线

分享vps资讯或技术分析 群组:t.me/zx_vps_chat

成员规模313 位成员
在线情况0 人在线
消息总数1,034 条消息
浏览量总数63,009 次浏览

在这个频道里搜索消息……

t.me/zx_vps

反代及 SSL 申请记录帖
安装Nginx
sudo apt update
sudo apt install nginx
Nginx配置
server {
listen 80;
server_name sub.996616.xyz;
location / {
proxy_pass http://localhost:8000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
检查配置文件是否正确
sudo nginx -t
重新加载 NGINX 使新配置生效
sudo systemctl reload nginx
设置 SSL 证书安装Let ‘sEncrypt
sudo apt install certbot python3-certbot-nginx
使用 certbot 自动配置证书
sudo certbot --nginx -d ssl.996616.xyz