fletch8527
Contributor
Contributor

Is it possible to change the base URL of the HTML5 client?

My host is ESXi 6.7. Is it possible to change the base URL of the HTML5 client? Im setting up a reverse proxy (Traefik) and would like to configure my ESXi host in it as a subdirectory. When I attempt to access it through the reverse proxy it rewrites the url. This has been fixed in other apps I have behind the proxy by setting the base url to include the subdirectory.

Example:

Reverse Proxy: www.example.com/esxi

When I type in that url it gets changed to www.example.com/ui (this does not work as the reverse proxy is not configured for /ui)

I would need it to go to www.example.com/esxi/ui

Is there someplace in the HTML5 Client (or via CLI on the host) that I could change the base url?

0 Kudos
3 Replies
sjesse
Leadership
Leadership

This isn't supported but look at

https://blog.thepigsmud.com/vcenter-nginx-reverse-proxy/

for hints on getting it to work.

0 Kudos
vmrale
Expert
Expert

Hi,

there's a directory /etc/vmware-rhttpproxy/ on vCSA where You can find the configuration of Reverse Proxy Service. There's a primary proxy config file /etc/vmware-rhttpproxy/endpoints.conf.d/vpxd.conf where the main endpoints are listed.

This article might be helpfull:

https://blog.thepigsmud.com/vcenter-nginx-reverse-proxy/

Regards
Radek

If you think your question have been answered correctly, please consider marking it as a solution or rewarding me with kudos.
0 Kudos
fletch8527
Contributor
Contributor

Thanks for the replies. I did read over that blog but unfortunately its for setting up the ESXi host as a subdomain not as a subdirectory (as noted by the second comment in the comments section, by user CharsInt32). Ill look into the configuration files though and see if there is something in there that might help.

0 Kudos