[one-users] REST EC2 (Users Digest, Vol 50, Issue 58)

Rolandas Naujikas rolandas.naujikas at mif.vu.lt
Mon Apr 23 10:53:36 PDT 2012


On 2012-04-23 20:30, Charles Rodamilans wrote:
> Hi Rolandas,
> 
> this solved the problem.
> 
> Thanks,
> 
> Charles Rodamilans
> 
> Final configuration:
> 
> [root at lahpc_cloud_server ~]# vim /etc/httpd/conf.d/ssl.conf
> Listen 443
> <VirtualHost _default_:443>
> ServerName localhost
> ProxyPass / http://127.0.0.1:4567
> 
> [oneadmin at lahpc_cloud_server ~]$ vim /etc/one/econe.conf
> :server: 127.0.0.1
> :port: 4567
> :ssl_server: https://localhost/

The same is for OCCI also.

In econe-server.rb
...
    uri = URI.parse(conf[:ssl_server])
...
In OCCIServer.rb
...
        if config[:ssl_server]
            @base_url=config[:ssl_server]
        else
            @base_url="http://#{config[:server]}:#{config[:port]}"
        end
...

Rolandas Naujikas

> [oneadmin at lahpc_cloud_server ~]$ econe-describe-images  -U
> https://localhost-K oneadmin -S
> 5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8
> oneadmin     ami-00000019  available
> 17338366ceac9a69c73d2f1c1a7677d2
> oneadmin     ami-00000020  available
> 91d34ab841bd78e683dab4f345eae246
> oneadmin     ami-00000021  available
> 6dbcca995956233be8a2a922c643944f
> oneadmin     ami-00000022  available
> 37ffe10a30a795c2340c8ea19acfcc48
> 
> 
> Em 23 de abril de 2012 13:38, Rolandas Naujikas <rolandas.naujikas at mif.vu.lt
>> escreveu:
> 
>> On 2012-04-23 19:28, Charles Rodamilans wrote:
>>> Hi Daniel,
>>>
>>> I used port 8443, for sugestion in
>>>
>> http://opennebula.org/documentation:archives:rel3.2:ec2qcg#configuring_a_ssl_proxy
>>>
>>> I changed  :ssl_server parameter to localhost:8443, restart econe-server,
>>> and the problem continues (Test 1).
>>> I changed the configuration to 443 in ssl/httpd and econe-server, restart
>>> httpd and econe-server, and the problem continues too (Test 2 and 3).
>>
>> At least in opennebula 3.2 you have put full URL in ssl_server parameter
>> like:
>>
>> :ssl_server: https://cloud.example.com/
>>
>> Where cloud.example.com is external hostname of reverse proxy.
>>
>> Rolandas
>>
>>> Cheers
>>>
>>> Charles Rodamilans
>>
> 




More information about the Users mailing list