Proxmox Behind Web Proxy with Subdirectory

yakatz

New Member
Dec 19, 2022
7
1
3
We have configured several separate proxmox clusters and we access them through our existing HAProxy load balancers.

Example configuration - this only allows access from certain IP addresses and handles directing to any server which is up and keeps pointing to that server for as long as possible using a sticky cookie:

Code:
backend shared-lb00_proxmox-ssl
  mode http
  acl network_internal src 10.3.130.0/23
  acl network_internal src 10.100.0.0/24
  cookie Stick-Proxmox-all insert preserve dynamic
  errorfile 403 /etc/haproxy/errors/internal_network.html.http
  http-request allow if network_internal
  http-request deny
  option allbackups
  option redispatch
  server pve01.example.com:8006 10.7.35.101:8006 check ssl verify none
  server pve02.example.com:8006 10.7.35.102:8006 check ssl verify none
  server pve03.example.com:8006 10.7.35.103:8006 check ssl verify none

This works really well, but we need to create a new subdomain for each cluster, for example cluster1.example.com, cluster2.example.com, etc. I wanted to see if there was a way to proxy each cluster through a subdomain, for example proxmox.example.com/cluster1, proxmox.example.com/cluster2.

It looks like I can make this work for the main web interface. I haven't tried console access yet. The Android app definitely doesn't work with this.

Any chance of being able to support this type of access?
 
Yes, most software is not able to do this. Most of the time they use just /api as endpoint and thererfore it'll not work. I stopped using directories in favor of domains, because that works all the time.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!