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

Daniel Molina dmolina at opennebula.org
Mon Aug 25 03:16:26 PDT 2014


Hi,

Sunstone server uses the "ZONE_NAME" http header to define the opennebula
endpoint, you have to forward it.

Cheers


On 21 August 2014 20:54, Liu, Gene <Gene.Liu at alcatel-lucent.com> wrote:

>  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
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140825/2affd825/attachment.htm>


More information about the Users mailing list