Site not forced to HTTP

Pretty basic. I go through the setup and choose to force everything to HTTPS. But it doesn’t.

IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@abc.com
ServerName abc.com
ServerAlias www.abc.com
DocumentRoot /var/www/abc.com/public_html
<Directory /var/www/abc.com/public_html/>
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all

ErrorLog ${APACHE_LOG_DIR}/abc.com_error.log
CustomLog ${APACHE_LOG_DIR}/abc.com_access.log combined

SSLCertificateFile /etc/letsencrypt/live/abc.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/abc.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf

Please fill out the fields below so we can help you better.

My domain is: newcriterion.com

I ran this command: $ certbot --apache

It produced this output: SSL installed and forced HTTPS

My web server is (include version): Ubuntu 16.10

The operating system my web server runs on is (include version): Apache

My hosting provider, if applicable, is: Digital Ocean

I can login to a root shell on my machine (yes or no, or I don’t know): Yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): No

Please show the relevant configuration files.
At least those that show the redirection and listen statements.
Possibly:
Include /etc/letsencrypt/options-ssl-apache.conf

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.