<div dir="ltr">Thank you Daniel for sharing this, we will include it in the docs</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 6 February 2014 11:13, Daniel Dehennin <span dir="ltr"><<a href="mailto:daniel.dehennin@baby-gnu.org" target="_blank">daniel.dehennin@baby-gnu.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Daniel Molina <<a href="mailto:dmolina@opennebula.org">dmolina@opennebula.org</a>> writes:<br>
<br>
> On 4 February 2014 17:58, ML mail <<a href="mailto:mlnospam@yahoo.com">mlnospam@yahoo.com</a>> wrote:<br>
><br>
>> I have found out the problem with the 403 forbidden errors, I needed to<br>
>> pass the following HTTP headers in my nginx reverse proxy configuration:<br>
>><br>
>> proxy_set_header X-Real-IP $remote_addr;<br>
>> proxy_set_header X-Forwarded-For<br>
>> $proxy_add_x_forwarded_for;<br>
>> proxy_set_header Host $http_host;<br>
>><br>
><br>
> Great, could you share with the list how did you configure nginx and<br>
> sunstone, and the whole configuration?<br>
<br>
<br>
</div>Personnaly I added a “client_max_body_size” to upload images:<br>
<br>
#+begin_src conf<br>
# /etc/nginx/sites-available/opennebula-sunstone<br>
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.<br>
##<br>
<div class="im"><br>
upstream sunstone {<br>
server <a href="http://127.0.0.1:9869" target="_blank">127.0.0.1:9869</a>;<br>
}<br>
<br>
server {<br>
</div> listen 80 default_server;<br>
listen [::]:80 default_server ipv6only=on;<br>
<br>
root /usr/share/nginx/html;<br>
index index.html index.htm;<br>
<br>
server_name <a href="http://nebula.baby-gnu.net" target="_blank">nebula.baby-gnu.net</a>;<br>
<br>
access_log /var/log/nginx/opennebula-sunstone-access.log;<br>
error_log /var/log/nginx/opennebula-sunstone-error.log;<br>
<br>
# To upload ISO files, must be increased for VMs images<br>
client_max_body_size 1G;<br>
<br>
location / {<br>
include proxy_params;<br>
proxy_pass <a href="http://sunstone" target="_blank">http://sunstone</a>;<br>
}<br>
}<br>
#+end_src<br>
<br>
Regards.<br>
<br>
--<br>
Daniel Dehennin<br>
Récupérer ma clef GPG:<br>
gpg --keyserver <a href="http://pgp.mit.edu" target="_blank">pgp.mit.edu</a> --recv-keys 0x7A6FE2DF<br>
<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>