[one-users] web UI does not work for zone/vDC if sunstone server is behind a reverse proxy server

Liu, Gene Gene.Liu at alcatel-lucent.com
Thu Aug 21 11:54:45 PDT 2014


After I setup a proxy server (ngnix) before sunstone server on master.
>From Sunstone UI (192.168.100.10), I can not change zone to "zone1".
Other functions work well from sunstone UI, but changing "zone".

  *

    If I remove the proxy server, and access directly to sunstone
    server: 192.168.100.10:9869, changing "zone" from sunstone portal works.

    my nginx reverse proxy server setting is as below:
    ------------------------------------------------------------------
    [root at vone_gene ~]# cat /etc/nginx/conf.d/default.conf
    #
    # The default server
    #
    server {
    listen 192.168.100.10:80;
    server_name mycloud.alcatel-lucent.com;

    location / {
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

    proxy_pass http://localhost:9869;
    }

    error_page 404 /404.html;
    location = /404.html {
    root /usr/share/nginx/html;
    }

    # redirect server error pages to the static page /50x.html
    #
    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
    root /usr/share/nginx/html;
    }
    }

    sunstone server settings:
    ---------------------------------------------
    ################################################################################

    # Server Configuration
    ################################################################################

    # Directory to store temp files when uploading images
    #
    :tmpdir: /var/tmp

    # OpenNebula sever contact information
    #
    :one_xmlrpc: http://localhost:2633/RPC2

    # Server Configuration
    #
    :host: 127.0.0.1
    :port: 9869

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140821/ce8b7c86/attachment.htm>


More information about the Users mailing list