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