File: //etc/apache2/sites-available/novotecs.com.conf
# Virtual Hosts
<VirtualHost *:80>
ServerAdmin support@novotecs.com
ServerName novotecs.com
ServerAlias www.novotecs.com
#DocumentRoot
DocumentRoot /var/www/novotecs.com
<Directory "/var/www/novotecs.com">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/novotecs.com-error.log
CustomLog ${APACHE_LOG_DIR}/novotecs.com-access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =novotecs.com [OR]
RewriteCond %{SERVER_NAME} =www.novotecs.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin support@novotecs.com
ServerName novotecs.com
ServerAlias www.novotecs.com
#DocumentRoot
DocumentRoot /var/www/novotecs.com
<Directory "/var/www/novotecs.com">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
Alias /adfs /opt/simplesamlphp/www
<Directory /opt/simplesamlphp/www>
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/novotecs.com-error.log
CustomLog ${APACHE_LOG_DIR}/novotecs.com-access.log combined
SSLCertificateFile /etc/letsencrypt/live/novotecs.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/novotecs.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>