<VirtualHost *:80>
    ServerName stmedia.swipetask.com
    ServerAlias www.stmedia.swipetask.com
    DocumentRoot /opt/media
    #SSLEngine on
    #SSLCertificateFile /opt/http-ssl/SSLCRT/STAR_swipetask_com.crt
    #SSLCertificateKeyFile /opt/http-ssl/swipetask.key
    #SSLCertificateChainFile /opt/http-ssl/SSLCRT/AddTrustExternalCARoot.crt
    <Directory "/opt/media/">
        Options Indexes ExecCGI FollowSymLinks
        Order allow,deny
        Allow from all
        AllowOverride all
        Require all granted
    </Directory>
#    RewriteEngine on
#    RewriteCond %{SERVER_NAME} =stmedia.swipetask.com
#    RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>


<VirtualHost *:443>
    	ServerName stmedia.swipetask.com
	ServerAlias www.stmedia.swipetask.com
	DocumentRoot /opt/media
	SSLEngine on
	SSLCertificateFile /opt/http-ssl/SSLCRT/STAR_swipetask_com.crt
	SSLCertificateKeyFile /opt/http-ssl/swipetask.key
	#SSLCertificateChainFile /opt/http-ssl/SSLCRT/AddTrustExternalCARoot.crt
	SSLCertificateChainFile /opt/http-ssl/SSLCRT/My_CA_Bundle.ca-bundle
	<Directory "/opt/media/">
		Options Indexes ExecCGI FollowSymLinks
		Order allow,deny
		Allow from all
		AllowOverride all
		Require all granted
	</Directory>
</VirtualHost>
