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

Daniel Dehennin daniel.dehennin at baby-gnu.org
Mon Aug 25 06:38:46 PDT 2014


"Liu, Gene" <Gene.Liu at alcatel-lucent.com> writes:

> Thanks Daniel!
> Could you please specify "how"?

Using nginx, I have this in /etc/nginx/site-available/opennebula-sunstone:

#+begin_src
upstream sunstone {
        server 127.0.0.1:9869;
}

server {
        listen 80 default_server;
        listen [::]:80 default_server ipv6only=on;

        root /usr/share/nginx/html;
        index index.html index.htm;

        server_name nebula.example.net;

        access_log  /var/log/nginx/opennebula-sunstone-access.log;
        error_log  /var/log/nginx/opennebula-sunstone-error.log;

        # Pass headers with underscore
        underscores_in_headers on;

        # To upload ISO files, increase for VMs images
        client_max_body_size 1G;
        location / {
                include proxy_params;
                # Forward ZONE_NAME to ONE process
                proxy_set_header ZONE_NAME $http_zone_name;
                proxy_pass http://sunstone;
        }
}
#+end_src

Regards.
>
> Gene
>
> On 14-08-25 06:16 AM, Daniel Molina wrote:
>> "ZONE_NAME" http header
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

-- 
Daniel Dehennin
Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF
Fingerprint: 3E69 014E 5C23 50E8 9ED6  2AAD CC1E 9E5B 7A6F E2DF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 342 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140825/43568577/attachment.pgp>


More information about the Users mailing list