Define ADA_ACTIONS_ROOT /var/www/html/ada-actions/www
Define ADA_ACTIONS_LOGS /var/log/apache2
<VirtualHost *:8080>
    DocumentRoot ${ADA_ACTIONS_ROOT}

    Include ${ADA_ACTIONS_ROOT}/../config/apache/dist/sta-sites-db-domains.conf

    ErrorLog ${ADA_ACTIONS_LOGS}/ada-actions-error.log
    CustomLog ${ADA_ACTIONS_LOGS}/ada-actions-access.log combined

    Include ${ADA_ACTIONS_ROOT}/../config/apache/dist/actions-rewrite.conf

    <Directory ${ADA_ACTIONS_ROOT}>
        Options -Indexes +FollowSymLinks +MultiViews
        AllowOverride None
        Require all granted
    </Directory>
    <FilesMatch \.php$>
        # Apache 2.4.10+ can proxy to unix socket
        SSLOptions +StdEnvVars
        SetHandler "proxy:unix:/var/run/php/php5.6-fpm.sock|fcgi://localhost/"
    </FilesMatch>
</VirtualHost>
<VirtualHost *:443>
    DocumentRoot ${ADA_ACTIONS_ROOT}
    Include ${ADA_ACTIONS_ROOT}/../config/apache/dist/sta-sites-db-domains.conf
    
    SSLEngine on

    SSLCertificateFile      /etc/ssl/certs/localhost.crt
    SSLCertificateKeyFile /etc/ssl/private/localhost.key

    ProxyPreserveHost On
    ProxyPass / http://127.0.0.1:80/
    RequestHeader set X-Forwarded-Port "443"
    RequestHeader set X-Forwarded-Proto "https"
</VirtualHost>
