# 1. Enable the Apache SSL module & Rewrite module
sudo a2enmod ssl rewrite

# 2. Test the configuration for syntax errors
sudo apache2ctl configtest

# 3. Reload Apache to apply the new configuration
sudo systemctl reload apache2

sudo a2enmod ssl rewrite && sudo apache2ctl configtest && sudo systemctl reload apache2

# 1. Test configuration for syntax errors
sudo apache2ctl configtest

# 2. Reload Apache to apply changes
sudo systemctl reload apache2

# 3. Test port 443 using cURL to verify SSL handshake
curl -Iv https://demo.scaleassist.co.za