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