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