Proxmox Behind Web Proxy with Subdirectory


New Member
Dec 19, 2022
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:

backend shared-lb00_proxmox-ssl
  mode http
  acl network_internal src
  acl network_internal src
  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 check ssl verify none
  server check ssl verify none
  server check ssl verify none

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

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.


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!