[one-users] Sunstone with nginx as reverse-proxy - server exception
Daniel Molina
dmolina at opennebula.org
Fri Feb 7 02:39:16 PST 2014
Thank you Daniel for sharing this, we will include it in the docs
On 6 February 2014 11:13, Daniel Dehennin <daniel.dehennin at baby-gnu.org>wrote:
> Daniel Molina <dmolina at opennebula.org> writes:
>
> > On 4 February 2014 17:58, ML mail <mlnospam at yahoo.com> wrote:
> >
> >> I have found out the problem with the 403 forbidden errors, I needed to
> >> pass the following HTTP headers in my nginx reverse proxy configuration:
> >>
> >> proxy_set_header X-Real-IP $remote_addr;
> >> proxy_set_header X-Forwarded-For
> >> $proxy_add_x_forwarded_for;
> >> proxy_set_header Host $http_host;
> >>
> >
> > Great, could you share with the list how did you configure nginx and
> > sunstone, and the whole configuration?
>
>
> Personnaly I added a "client_max_body_size" to upload images:
>
> #+begin_src conf
> # /etc/nginx/sites-available/opennebula-sunstone
> # Please see /usr/share/doc/nginx-doc/examples/ for more detailed
> examples.
> ##
>
> 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.baby-gnu.net;
>
> access_log /var/log/nginx/opennebula-sunstone-access.log;
> error_log /var/log/nginx/opennebula-sunstone-error.log;
>
> # To upload ISO files, must be increased for VMs images
> client_max_body_size 1G;
>
> location / {
> include proxy_params;
> proxy_pass http://sunstone;
> }
> }
> #+end_src
>
> Regards.
>
> --
> Daniel Dehennin
> Récupérer ma clef GPG:
> gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF
>
> _______________________________________________
> 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/20140207/58760a0f/attachment-0002.htm>
More information about the Users
mailing list