Access Vsphere web client using Nginx reverse proxy

August 30, 2016 258 views
Nginx Ubuntu

We have a deployment scenario where in we want to expose a public url and behind that access vcenter web client through Nginx using reverse proxy. Currently we are only able to access the login page which gets stuck when we enter the credentials.

Following is our conf file:

server {
listen 80;
servername localhost;
log logs/host.access.log main;

    location / {
        root   html;
        index  index.html index.htm;
        resolver DNS server;
        proxy_pass vecenter IP;
        proxy_redirect off;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;


1 Answer

Doing a little searching I've found that a simple reverse proxy will not work for vcenter but i was able to find this repository which includes a sample nginx configuration and the other things needed to proxy vcenter.

  • Thanks for the reply.
    We were able to access the vcenter web client . But were unable to launch the VM console from vsphere web client through the reverse proxy. Any pointers on this ?


Have another answer? Share your knowledge.