Hello,
i have a multihomed server and wanted to have a reverse proxy which can balance between all ip. Unfortunately, since i installed it, the gui isnt working properly. I cant open consoles and i have error 500: proxy not allowed everywhere
i have a multihomed server and wanted to have a reverse proxy which can balance between all ip. Unfortunately, since i installed it, the gui isnt working properly. I cant open consoles and i have error 500: proxy not allowed everywhere
code_language.shell:
cat /etc/nginx/sites-enabled/proxmox
upstream proxmox {
server lab1.work.com;
server lab2.work.com;
server lab3.work.com;
}
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;
}
}