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