synnefo || ns || apt || mq || db || gunicorn || apache || webproject || astakos || cms || pithos || cyclades || kamaki || backends

Apache Setup

The following apply to astakos, pithos, cyclades and cms nodes. Here we assume that these nodes have FQDM

First install corresponding packet:

# apt-get install apache2

In /etc/apache2/sites-available/synnefo add:

<VirtualHost *:80>

  RewriteEngine On
  RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

In /etc/apache2/sites-available/synnefo-ssl add:

<IfModule mod_ssl.c>
<VirtualHost _default_:443>

  Alias /static "/usr/share/synnefo/static"

  AllowEncodedSlashes On

  RequestHeader set X-Forwarded-Proto "https"

  <Proxy * >
    Order allow,deny
    Allow from all

  SetEnv                proxy-sendchunked
  SSLProxyEngine        off
  ProxyErrorOverride    off

  ProxyPass        /static !
  ProxyPass        / http://localhost:8080/ retry=0
  ProxyPassReverse / http://localhost:8080/

  SSLEngine on
  SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
  SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

Now enable sites and modules by running:

# a2enmod ssl
# a2enmod rewrite
# a2dissite default
# a2ensite synnefo
# a2ensite synnefo-ssl
# a2enmod headers
# a2enmod proxy_http

Test your Setup: