Apache SSL proxy to econe


The official EC2 Service Configuration guide explains how to configure lighttpd to provide an SSL proxy for the econe service. This guide explains how to do the same with an Apache server.

OpenNebula configuration

Edit /etc/one/econe.conf (or $ONE_LOCATION/etc/econe.conf in a self-contained installation):

# OpenNebula sever contact information

# Host and port where OCA server will run

#SSL Proxy
SSL_SERVER=<hostname.domain>:<the port you run the proxy on>

Apache configuration

Cofigure a redirect in /etc/httpd/conf/httpd.conf:

<VirtualHost *:80>
  ServerName <hostname>:80
  ServerAdmin youremail@domain.com

  RedirectMatch  ^/$ https://<yourhostname>:<yourproxyport>


Edit /etc/httpd/conf.d/ssl.conf:

<VirtualHost _default_:8443>

#put the SSL options that you need/want
#and the following did the trick for me

ProxyPreserveHost on
ProxyPass / http://localhost:4567
ProxyPassReverse / http://localhost:4567

econe_apache · Last modified: 2011/09/19 13:07 by
Admin · Login