Listen 8080
NameVirtualHost *:8080

Listen 8443 https
NameVirtualHost *:8443

<VirtualHost *:80 *:8080>
    ServerName https_redirect
    DocumentRoot /var/www/html/
    <Directory /var/www/html/>
        AllowOverride All
    </Directory>

</VirtualHost>

<VirtualHost *:443 *:8443>
    ServerName https_redirect
    DocumentRoot /var/www/html/
    <Directory /var/www/html/>
        AllowOverride All
    </Directory>

    SSLEngine on
    SSLCertificateFile /etc/apache2/server.crt
    SSLCertificateKeyFile /etc/apache2/server.key
</VirtualHost>
