<div dir="ltr">Hi,<div><br></div><div>Sunstone server uses the "ZONE_NAME" http header to define the opennebula endpoint, you have to forward it.</div><div><br></div><div>Cheers</div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On 21 August 2014 20:54, Liu, Gene <span dir="ltr"><<a href="mailto:Gene.Liu@alcatel-lucent.com" target="_blank">Gene.Liu@alcatel-lucent.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    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".
    <ul>
      <li>
        <p>If I remove the proxy server, and access directly to sunstone
          server: <a href="http://192.168.100.10:9869" target="_blank">192.168.100.10:9869</a>, changing "zone" from sunstone
          portal works.</p>
        <p>my nginx reverse proxy server setting is as below:
          <br>
------------------------------------------------------------------
          <br>
          [root@vone_gene ~]# cat /etc/nginx/conf.d/default.conf <br>
          #
          <br>
          # The default server
          <br>
          #
          <br>
          server {
          <br>
          listen <a href="http://192.168.100.10:80" target="_blank">192.168.100.10:80</a>;
          <br>
          server_name <a href="http://mycloud.alcatel-lucent.com" target="_blank">mycloud.alcatel-lucent.com</a>;</p>
        <p> location / {
          <br>
          proxy_set_header Host $host;
          <br>
          proxy_set_header X-Real-IP $remote_addr;
          <br>
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;</p>
        <p> proxy_pass <a href="http://localhost:9869" rel="nofollow" target="_blank">http://localhost:9869</a>;
          <br>
          }</p>
        <p> error_page 404 /404.html;
          <br>
          location = /404.html {
          <br>
          root /usr/share/nginx/html;
          <br>
          }</p>
        <p> # redirect server error pages to the static page /50x.html
          <br>
          #
          <br>
          error_page 500 502 503 504 /50x.html;
          <br>
          location = /50x.html {
          <br>
          root /usr/share/nginx/html;
          <br>
          }
          <br>
          }</p>
        <p>sunstone server settings:
          <br>
          ---------------------------------------------
          <br>
################################################################################
          <br>
          # Server Configuration
          <br>
################################################################################</p>
        <p># Directory to store temp files when uploading images
          <br>
          #
          <br>
          :tmpdir: /var/tmp</p>
        <p># OpenNebula sever contact information
          <br>
          #
          <br>
          :one_xmlrpc: <a href="http://localhost:2633/RPC2" rel="nofollow" target="_blank">http://localhost:2633/RPC2</a></p>
        <p># Server Configuration
          <br>
          #
          <br>
          :host: 127.0.0.1
          <br>
          :port: 9869</p>
      </li>
    </ul>
  </div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>--<br></div>Daniel Molina<br>Project Engineer<br>OpenNebula - Flexible Enterprise Cloud Made Simple<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a> | @OpenNebula</div>


</div>