How to force HTTPS in Apache2?

Try making the same changes to /etc/apache2/sites-enabled/apache2-le-ssl.conf. You should find the virtualhost around line 15.

1 Like