Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/apps.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <stefan@herbrechtsmeier.net>2013-01-06 15:32:21 +0400
committerStefan Herbrechtsmeier <stefan@herbrechtsmeier.net>2013-01-31 21:47:37 +0400
commit8945ea57d3786b962998129423434cc7e844eea0 (patch)
tree30a7f1e65c3929f5953034e74d4e9965f0980339 /user_oauth
parent8decbad6b19468fb25f164905ba9fa3385b5175d (diff)
add multiple domains reverse SSL proxy support
Add support for a reverse proxy that handles multiple domains via different web roots (https://proxy.tld/domain.tld/owncloud) and only forwards SSL connections unencrypted to the web server. As the reverse proxy web root is transparent for the web server the REQUEST_URI and SCRIPT_NAME need manual adjustments. This patch replace the direct use of this _SERVER variables with function calls. Additionally it adds a Sabre request backend that extends the Sabre_HTTP_Request to use the same functions.
Diffstat (limited to 'user_oauth')
-rw-r--r--user_oauth/remote.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/user_oauth/remote.php b/user_oauth/remote.php
index f0f0075e2..a7ef18e7c 100644
--- a/user_oauth/remote.php
+++ b/user_oauth/remote.php
@@ -35,12 +35,14 @@ require_once "oauth.php";
// Backends
$authBackend = new OC_Connector_Sabre_OAuth($tokenInfoEndpoint, $useResourceOwnerId, $userIdAttributeName);
$lockBackend = new OC_Connector_Sabre_Locks();
+$requestBackend = new OC_Connector_Sabre_Request();
// Create ownCloud Dir
$publicDir = new OC_Connector_Sabre_Directory('');
// Fire up server
$server = new Sabre_DAV_Server($publicDir);
+$server->httpRequest = $requestBackend;
$server->setBaseUri($baseuri);
// Load plugins