diff options
author | Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net> | 2012-09-09 14:54:47 +0400 |
---|---|---|
committer | herbrechtsmeier <stefan@herbrechtsmeier.net> | 2013-01-31 21:42:31 +0400 |
commit | ab2b79cda682a697baba2128a21d3a9b5e90853c (patch) | |
tree | fbaf5a643bbfa2c4236d574ecb41784f5c859d15 /config | |
parent | 411e8e5218e0b0d6dc7e993f283b8a457f780af9 (diff) |
add multiple domains reverse proxy support
Add support for a reverse proxy that handles multiple domains via different
web roots (http[s]://proxy.tld/domain.tld/owncloud).
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 and extend
this functions to overwrite the web root. Additionally it adds a Sabre
request backend that extends the Sabre_HTTP_Request to use the same
functions.
Diffstat (limited to 'config')
-rw-r--r-- | config/config.sample.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php index 05663a09a46..ebe73fbec7b 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -38,6 +38,9 @@ $CONFIG = array( /* The automatic protocol detection of ownCloud can fail in certain reverse proxy situations. This option allows to manually override the protocol detection. For example "https" */ "overwriteprotocol" => "", +/* The automatic webroot detection of ownCloud can fail in certain reverse proxy situations. This option allows to manually override the automatic detection. For example "/domain.tld/ownCloud" */ +"overwritewebroot" => "", + /* A proxy to use to connect to the internet. For example "myproxy.org:88" */ "proxy" => "", |