设为首页
收藏本站
切换到宽版
用户名
Email
自动登录
找回密码
密码
登录
注册
快捷导航
论坛
BBS
排行榜
Ranklist
搜索
搜索
热搜:
香港vps
香港VPS
amh
机柜
vps
分销
VPS
域名出售
火车头
云主机
不限流量
香港服务器
美国服务器
香港
全能空间
whmcs
digitalocean
本版
帖子
用户
MJJ论坛
»
论坛
›
主机综合交流
›
美国VPS综合讨论
›
请教PVE的8006端口怎么可以改成443
1
2
/ 2 页
返回列表
楼主:
zxxx
[疑问]
请教PVE的8006端口怎么可以改成443
[复制链接]
zxxx
zxxx
当前离线
积分
62437
楼主
|
发表于 2023-2-17 23:01:21
|
显示全部楼层
或者使用Nginx代理,比较复杂
Web Interface Via Nginx Proxy
https://pve.proxmox.com/wiki/Web_Interface_Via_Nginx_Proxy
apt install nginx
rm /etc/nginx/conf.d/default
rm /etc/nginx/sites-enabled/default
nano /etc/nginx/conf.d/proxmox.conf
复制代码
upstream proxmox {
server "YOUR.FQDN.HOSTNAME.HERE";
}
server {
listen 80 default_server;
rewrite ^(.*) https://$host$1 permanent;
}
server {
listen 443;
server_name _;
ssl on;
ssl_certificate /etc/pve/local/pve-ssl.pem;
ssl_certificate_key /etc/pve/local/pve-ssl.key;
proxy_redirect off;
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass https://localhost:8006;
proxy_buffering off;
client_max_body_size 0;
proxy_connect_timeout 3600s;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
send_timeout 3600s;
}
}
复制代码
systemctl restart nginx
复制代码
After nginx service restarts you should be able to reach the web interface
https://your.fqdn.goes.here
https://your.ip.address.goes.here
ensure that nginx gets only started after the certificates are available
systemctl edit nginx.service
复制代码
[Unit]
Requires=pve-cluster.service
After=pve-cluster.service
复制代码
and save + exit.
Enjoy the web interface on HTTPS port 443
回复
支持
反对
举报
airinf
airinf
当前离线
积分
9421
发表于 2023-2-17 23:08:45
|
显示全部楼层
这样转发后小鸡就不能链接ssl了
回复
支持
反对
举报
1
2
/ 2 页
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖后跳转到最后一页
浏览过的版块
IP/主机提供商甄别处
亚洲服务器
美国虚拟主机交流
Web技术
Offers专区
干货茶馆
域名注册续费交流
Archiver
|
手机版
|
小黑屋
|
MJJ论坛
Copyright
MJJ论坛
© 2022 All Rights Reserved.
快速回复
返回顶部
返回列表