You have to include both attrs inside the server section and restart:
underscores_in_headers on;
proxy_pass_request_headers on;

On 23 January 2015 at 15:47, kiran ranjane <kiran.ranj...@gmail.com> wrote:

> Hi Daniel,
>
> I tried adding proxy_pass_request_headers on; to the config file still
> getting same issue, Here's my nginx config, let me know if I am doing
> something wrong :
>
> # /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 443;
>           server_name synccore;
>
>           ssl on;
>           ssl_certificate /etc/nginx/ssl/nginx.crt;
>           ssl_certificate_key /etc/nginx/ssl/nginx.key;
>
>           root /usr/share/nginx/html;
>           index index.html index.htm;
>
>           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 2048G;
>
>           location / {
>                   include proxy_params;
>                   proxy_pass http://sunstone;
>                   proxy_pass_request_headers on;
>
>
> Regards
> Kiran Ranjane
>
> On Fri, Jan 23, 2015 at 6:12 PM, Daniel Molina <dmol...@opennebula.org>
> wrote:
>
>> You have to include the following attrs in your nginx conf
>>
>> underscores_in_headers on;
>> proxy_pass_request_headers on;
>>
>> On 23 January 2015 at 13:39, kiran ranjane <kiran.ranj...@gmail.com>
>> wrote:
>>
>>> Yes Daniel, I am using nginx.
>>>
>>> Do you want me to add these values to nginx site config file ot to
>>> sunstone-server config file?
>>>
>>> Regards
>>> Kiran Ranjane
>>>
>>> On Fri, Jan 23, 2015 at 4:58 PM, Daniel Molina <dmol...@opennebula.org>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> Are you running sunstone behind a proxy/apache, those values are passed
>>>> to the server using the following headers:
>>>> HTTP_X_VCENTER_USER
>>>> HTTP_X_VCENTER_PASSWORD
>>>> HTTP_X_VCENTER_HOST
>>>>
>>>> May be you have to forward them in your server conf
>>>>
>>>> Hope this helps
>>>>
>>>> On 23 January 2015 at 12:19, kiran ranjane <kiran.ranj...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I am unable to add vCenter host from sunstone and it gives error "You
>>>>> have to provide the vCenetr username, password and hostname"
>>>>>
>>>>> However the same username, password and hostname works when I use the
>>>>> command
>>>>>
>>>>> onevcenter hosts --vcenter <vcenter-host> --vuser <vcenter-username> 
>>>>> --vpass <vcenter-password>
>>>>>
>>>>> Sunstone Logs :
>>>>>
>>>>> Fri Jan 23 16:41:58 2015 [E]: [vCenter] You have to provide the
>>>>> vCenter username, password and hostname
>>>>> Fri Jan 23 16:41:58 2015 [I]: 10.10.8.170 - - [23/Jan/2015 16:41:58]
>>>>> "GET /vcenter?timeout=false&csrftoken=090c8b8a47abadc2fd1643922e3d0fc6
>>>>> HTTP/1.0" 404 - 0.0012
>>>>> Fri Jan 23 16:41:58 2015 [I]: 10.10.8.170 - - [23/Jan/2015 16:41:58]
>>>>> "GET
>>>>> /support/request?timeout=false&csrftoken=090c8b8a47abadc2fd1643922e3d0fc6
>>>>> HTTP/1.0" 500 - 0.0011
>>>>>
>>>>> One and sunstone service are also restarted and still same. Let me
>>>>> know If I am missing something.
>>>>>
>>>>> One Version - 4.10.2
>>>>>
>>>>> Regards
>>>>> Kiran Ranjane
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users@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 | dmol...@opennebula.org | @OpenNebula
>>>>
>>>
>>>
>>
>>
>> --
>> --
>> Daniel Molina
>> Project Engineer
>> OpenNebula - Flexible Enterprise Cloud Made Simple
>> www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
>>
>
>


-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to