File: //etc/apache2/sites-available/enhancive.co.za.conf
<VirtualHost *:80>
ServerName enhancive.co.za
ServerAlias www.enhancive.co.za test.enhancive.co.za youfin.co.za www.youfin.co.za
ServerAdmin webmaster@enhancive.co.za
DocumentRoot /home/enhanciv/public_html
AssignUserID enhanciv enhanciv
# AssignUserID enhancivq enhanciv
Include zsdvirtualhostgeneric.conf
ErrorLog /home/enhanciv/log/error.log
LogLevel warn
CustomLog /home/enhanciv/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} =test.enhancive.co.za [OR]
RewriteCond %{SERVER_NAME} =youfin.co.za [OR]
RewriteCond %{SERVER_NAME} =enhancive.co.za [OR]
RewriteCond %{SERVER_NAME} =www.enhancive.co.za [OR]
RewriteCond %{SERVER_NAME} =www.youfin.co.za
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>