Summary
I have several servers behind a single Apache2 server that I use as a reverse proxy making a central place for SSL termination, then everything behind the proxy uses http. OwnCloud lives behind this proxy. My ISP blocks port 80, so Apache only listens on 443/https. Any http requests to me hang as the packets are dropped
Basically what happens is owncloud’s login page links to http://owncloud.XYZ.org/apps/files/
because the docker container itself is configured without SSL. When setting up a reverse proxy, the guide assumes that port 80 is open and is able to redirect HTTP traffic to HTTPS, so when it links to an HTTP page then it will automatically redirect to HTTPS. Unfortunately for me that isnt true because my ISP drops packets on port 80.
If the login button simply redirected to /apps/files/
or apps/files/
then the user would not leave the HTTPS environment and people who’s ISPs block port 80 would not see any problem like this.
Steps to reproduce
- Set up http owncloud server in docker
- Create reverse proxy that terminates SSL and forwards http traffic from proxy to owncloud container
- Log in
- The log in page sends you to
http://owncloud.XYZ.org/apps/files/
rather thanhttps://owncloud.XYZ.org/apps/files/
(if you had port 80 closed then the login page would hang)
Expected behaviour
Login sends the user to /apps/files/
would end up at https://owncloud.XYZ.org/apps/files/
and would allow me to keep port 80 closed
Actual behaviour
Login sends the user to http://owncloud.XYZ.org/apps/files/
, and since my ISP drops packets on port 80, it hangs
Server configuration
Operating system:
Ubuntu 20.04 w/ docker
Web server:
Default from docker-compose project
Database:
Default from docker-compose project
PHP version:
Default from docker-compose project
ownCloud version: (see ownCloud admin page)
ownCloud 10.8.0 (stable)
Updated from an older ownCloud or fresh install:
I’ve been noticing this for a while (ie some previous versions too) but only diagnosed the issue today
Where did you install ownCloud from:
The docker-compose guide
Signing status (ownCloud 9.0 and above):
N/A