My setup is that ownCloud runs on an internal server at 192.168.200.1. At 43.23.104.153 there is a public apache with mod_proxy that forwards the requests to the internal server:
ProxyPass /edward https://192.168.200.1/owncloud/
ProxyPassReverse /edward https://192.168.200.1/owncloud/
owncloud is configured according to the manual for reverse proxy support:
$CONFIG = array (
[...]
'trusted_domains' =>.
array (
0 => '192.168.200.1',
),
# 'trusted_proxies' => [ '43.23.104.153'],
'overwritehost' => 'external.tld',
'overwritewebroot' => '/edward',
);
I can access the site internally without any problems from https://192.168.200.1/owncloud.
But when I navigate to https://external.tld/edward, after the login I get an Internal Server Error. The log file contains:
{"reqId":"d5K1uNLeJyGSC8LUQXgM","remoteAddr":"43.23.104.153","app":"index","message":"Exception: {\"Exception\":\"Exception\",\"Message\":\"The requested uri(\\\/owncloud
\\\/index.php\\\/apps\\\/files\\\/) cannot be processed by the script '\\\/owncloud\\\/\\\/index.php')\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/ba
se.php(837): OC\\\\AppFramework\\\\Http\\\\Request->getRawPathInfo()\\n#1 \\\/var\\\/www\\\/owncloud\\\/index.php(39): OC::handleRequest()\\n#2 {main}\",\"File\":\"\\\/va
r\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/request.php\",\"Line \":621}","level":3,"time":"2016-04-28T10:07:16+00:00","method":"GET","url":"\/edward
\/index.php\/apps\/files\/","user":"1f75fef2-7ab7-102e-95c7-3929d8475818"}
I'm totally out of ideas. What is wrong here?