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