ServerName cdn.grovesindustrial.com RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L] CustomLog logs/com.grovesindustrial.cdn-access_log combined ErrorLog logs/com.grovesindustrial.cdn-error_log Options Includes FollowSymLinks Options +Indexes AllowOverride All Order allow,deny Allow from all ServerName cdn.dgisupply.ca DocumentRoot "/var/www/html/cdn/dgica" ServerName cdn.dgisupply.ca CustomLog "/var/log/httpd/ca.dgisupply.cdn-access_log" combined ErrorLog "/var/log/httpd/ca.dgisupply.cdn-error_log" Options Includes FollowSymLinks Options +Indexes AllowOverride All Order allow,deny Allow from all RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]