File: //etc/apache2/sites-enabled/synapse-ms.com.conf
<VirtualHost *:80>
DocumentRoot /home/sites/synapse-ms.com
ServerAlias www.synapse-ms.com
ServerAdmin contact@squeezer-software.com
ServerName synapse-ms.com
<Directory "/home/sites/synapse-ms.com">
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride all
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/synapse-ms.com-error.log
CustomLog ${APACHE_LOG_DIR}/synapse-ms.com.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.synapse-ms.com [OR]
RewriteCond %{SERVER_NAME} =synapse-ms.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>