.. _i-apache: Synnefo ------- :ref:`synnefo ` || :ref:`ns ` || :ref:`apt ` || :ref:`mq ` || :ref:`db ` || :ref:`gunicorn ` || apache || :ref:`webproject ` || :ref:`astakos ` || :ref:`cms ` || :ref:`pithos ` || :ref:`cyclades ` || :ref:`kamaki ` || :ref:`backends ` Apache Setup ++++++++++++ The following apply to ``astakos``, ``pithos``, ``cyclades`` and ``cms`` nodes. Here we assume that these nodes have FQDM ``nodeX.example.com``. First install corresponding packet: .. code-block:: console # apt-get install apache2 In `/etc/apache2/sites-available/synnefo` add: .. code-block:: console ServerName nodeX.example.com RewriteEngine On RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} In `/etc/apache2/sites-available/synnefo-ssl` add: .. code-block:: console ServerName nodeX.example.com Alias /static "/usr/share/synnefo/static" AllowEncodedSlashes On RequestHeader set X-Forwarded-Proto "https" 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: .. code-block:: console # a2enmod ssl # a2enmod rewrite # a2dissite default # a2ensite synnefo # a2ensite synnefo-ssl # a2enmod headers # a2enmod proxy_http Test your Setup: ++++++++++++++++