Making owncloud work with SSL and a reverse proxy

I set up owncloud yesterday, and it seems to be very nice.

But when I wanted to open it outside my network over SSL, it got stuck in a redirect loop.

Now, I use pound as a reverse proxy to balance requests over several servers and to do SSL termination.  This proved to be the problem, owncloud did not detect that the connection was SSL enabled despite the "X-Forwarded-Proto: https" header added by pound (which fixed similar problems in other webapps).

But luckily, just adding "SetEnv HTTPS on" in the Apache vhost fixed that!



I'd like to use SSL for my owncloud as well but never used pound before :/

I saw that pound is in the repositories but before installing it, could you please point me to some place, if you know where, I can learn how to configure it?


 has documentation including dependencies.  Didn't use the deb myself.

I'm testing owncloud behind an apache httpd-reverse-proxy with SSL-offload.

Your post helped me alot!
Thanks so much!