[Owncloud] Shared SSL Certificate (SSL Proxy)

thessy at besser.de thessy at besser.de
Tue Nov 29 20:27:47 UTC 2011


Hi,

with help from irc channel (thanx to bartv and subik|mac_) I created a 'merge 
request': https://gitorious.org/owncloud/owncloud/merge_requests/74

With this patch OC can be used on shared webhosting services over https 
without having a own ssl certificate for a domain. 

Please review.

Regards
Thomas aka thessy

Am Mittwoch 23 November 2011, 22:23:15 schrieb thessy at besser.de:
> Hi,
> 
> found another hint about ssl proxy:
> http://www.php.net/manual/en/reserved.variables.server.php#93599
> 
> With all that information I succeeded in creating a working patch (against
> git from this evening).
> 
> It would be great if that could be integrated into owncloud.
> 
> Regards
> Thomas aka thessy
> 
> Am Montag 07 November 2011, 22:23:52 schrieb Robin Appelman:
> > Not entire sure, but I think $_SERVER['https'] doesn't have to be 'on'
> > when https is used, just a non empty value.
> > 
> > - Robin Appelman
> > 
> > On Mon, Nov 7, 2011 at 22:10,  <thessy at besser.de> wrote:
> > > Hi,
> > > 
> > > installing oc (from git) on my shared web hosting provider (Hosteurope)
> > > works fine. I want to use it over https. Therefore a so called shared
> > > SSL Certificate (SSL Proxy) exists.
> > > 
> > > So my domain "www.besser.de" is available over
> > > "https://ssl.webpack.de/besser.de"
> > > 
> > > Added a new config value 'sslproxy' with the right value and tried to
> > > patch 'lib/base.php' (line 115 ff):
> > > 
> > > if(!isset($_SERVER['HTTPS']) or $_SERVER['HTTPS'] != 'on') {
> > > 
> > >        $sslproxy = OC_Config::getValue( "sslproxy", false );
> > >        if (isset($sslproxy)) {
> > >        
> > >                $url = "https://". $sslproxy . $_SERVER['REQUEST_URI'];
> > >        
> > >        } else {
> > >        
> > >                $url = "https://". $_SERVER['SERVER_NAME'] .
> > > 
> > > $_SERVER['REQUEST_URI'];
> > > 
> > >        }
> > > 
> > > But it ends with an infinite loop. Any hints where the problem could
> > > be?
> > > 
> > > Thanks in advance...
> > > Thomas
> > > _______________________________________________
> > > Owncloud mailing list
> > > Owncloud at kde.org
> > > https://mail.kde.org/mailman/listinfo/owncloud




More information about the Owncloud mailing list