File: //etc/apache2/sites-available/www.durafilms.com-le-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName durafilms.com
Redirect permanent / http://www.durafilms.com
SSLCertificateFile /etc/letsencrypt/live/www.durafilms.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.durafilms.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName www.durafilms.com
# RewriteEngine On
# RewriteCond %{HTTP:X-Forwarded-Proto} =http
# RewriteRule .* https://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent]
DocumentRoot /var/www/dura-films
<Directory /var/www/dura-films>
Require all granted
DirectoryIndex index.php
AllowOverride FileInfo
AllowOverride all
FallbackResource /index.php
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
SSLCertificateFile /etc/letsencrypt/live/www.durafilms.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.durafilms.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>