I have a clean installation of ownCloud and everything is working fine. I used the installation wizard for the installation and ownCloud is installed in /var/www/owncloud.
In the /etc/apache2/sites-available folder I have owncloud.conf but no vhost file.
I have a working ssl certificate and can access ownCloud with https. I want to enforce https and have tried Redirect permanent / https://example.com/ and other suggestions but nothing works.
I'm obviously doing something wrong so does anyone have any suggestions please?
Operating system: Ubuntu 16.04
Web server: Apache 2.4.18
Database: MariaDB 10.0.27
PHP version: 7.0.8
ownCloud version (see ownCloud admin page): 9.1.1
Updated from an older ownCloud or fresh install: Fresh install updated from 9.1 to 9.1.1
Special configuration (