vim /etc/apache2/sites-enabled/default-ssl.conf
Apache base virtual host file, default ssl conf file. Vim /etc/apache2/sites-enabled/default-ssl.conf : <IfModule mod_ssl.c > <VirtualHost xxx.xx.xxx.xxx:443 > ServerName jobsite.com ServerAlias *.jobsite.com LogLevel debug ErrorLog /var/log/apache2/jobsite_com_error.log CustomLog /var/log/apache2/jobsite_com_custom.log combined SSLEngine on SSLCertificateFile /etc/ssl/jobsite_com/jobsite_com.crt SSLCertificateKeyFile /etc/ssl/jobsite_com/jobsite_com.key # SSLCertificateChainFile /etc/ssl/jobsite_com/intermediate.crt RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^jobsite\.com [NC,OR] RewriteCond %{SERVER_NAME} xxx.xx.xxx.xxx RewriteRule /(.*) https://www.jobsite.com/$1 [R=301,L] RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] LimitRequestBody 31457