File: //etc/apache2/sites-available/lindsa.com.conf
<VirtualHost *:80>
ServerName lindsa.co.za
ServerAlias www.lindsa.co.za test.lindsa.co.za lindsa.com www.lindsa.com lindsaautomation.co.za www.lindsaautomation.co.za
ServerAdmin webmaster@lindsa.co.za
DocumentRoot /home/lindsa/public_html
AssignUserID lindsa lindsa
# AssignUserID lindsaq lindsa
Include zsdvirtualhostgeneric.conf
ErrorLog /home/lindsa/log/error.log
LogLevel warn
CustomLog /home/lindsa/log/access.log combined
ServerSignature On
# PHP settings requested for drupal
php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 60
#RewriteEngine on
#RewriteCond %{SERVER_NAME} =www.lindsa.co.za [OR]
#RewriteCond %{SERVER_NAME} =lindsa.com [OR]
#RewriteCond %{SERVER_NAME} =www.lindsaautomation.co.za [OR]
#RewriteCond %{SERVER_NAME} =www.lindsa.com [OR]
#RewriteCond %{SERVER_NAME} =lindsa.co.za [OR]
#RewriteCond %{SERVER_NAME} =lindsaautomation.co.za [OR]
#RewriteCond %{SERVER_NAME} =test.lindsa.co.za [OR]
#RewriteCond %{SERVER_NAME} =www.lindsaautomation.com [OR]
#RewriteCond %{SERVER_NAME} =www.lindsaautomation.net [OR]
#RewriteCond %{SERVER_NAME} =lindsaautomation.net [OR]
#RewriteCond %{SERVER_NAME} =lindsaautomation.com [OR]
#RewriteCond %{SERVER_NAME} =lindsaautomation.org [OR]
#RewriteCond %{SERVER_NAME} =www.lindsaautomation.org
#RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
RewriteEngine on
RewriteCond %{SERVER_NAME} =lindsa.com [OR]
RewriteCond %{SERVER_NAME} =lindsa.co.za [OR]
RewriteCond %{SERVER_NAME} =www.lindsaautomation.co.za [OR]
RewriteCond %{SERVER_NAME} =test.lindsa.co.za [OR]
RewriteCond %{SERVER_NAME} =www.lindsa.com [OR]
RewriteCond %{SERVER_NAME} =lindsaautomation.co.za [OR]
RewriteCond %{SERVER_NAME} =www.lindsa.co.za
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>