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? Thanks, Cliff
Server configuration 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 (
When getting started, it's often hard to tell where your problems stem from (ownCloud, Apache, Let's Encrypt, the OS, etc), especially if you're relatively inexperienced. I unpleasantly remember the anti-help I got from many linux forums ("read the fucking manual!", even if there was no entry to read) when I was learning back in the 90s, so now I try to point people to the appropriate area, then try to answer their question anyway. That way, I either help with direct advice, or help with an alternative forum.
Either way, it's better than how I learned. I'm glad the ownCloud forum isn't so retro
I’m having the same issue, and it’s NOT an Apache configuration issue. I had OwnCloud 9.0.1 configured to use https with no issues. I have not changed my Apache configuration. I upgrade to 9.1.8, and now OwnCloud refuses to run on https. The https page loads fine (proving that the Apache conf still works), but if I log in, OwnCloud redirects me back to http from https.
If I redirect from http to https in Apache conf OR in .htaccess, I get an error message that “The page isn’t redirecting properly.”
My OwnCloud config.php has the site URL as https. Not sure where else this is supposed to be configured, but it’s frustrating.
I was able to resolve it by entering the Docker container (docker exec -it owncloud-compose_owncloud_1 /bin/bash), running vim config/config.php in there, and adding a line 'overwriteprotocol' => 'https', (no restart required).