Wrong URL ander apache proxy

Hello all. The OwnCloud server is on the virtual machine having the address 192.168.1.84. If you go from the local network works fine, BUT if from the Internet somethink wrong, I have configured Apache2 proxy on the main OS (which runs VBox) , then the wrong address is generated, here’s an example:
Local, type in addr string in firefox/ie: “192.168.1.84” -> Enter, new addr after load page: “192.168.1.84/login” and works fine.
Internet, types cloud.mysite.ru -> Enter, new addr string = “https://cloud.mysite.rulogin” (Wgere the “/” symbol???)
Apache2 config:

<VirtualHost *:80>
ServerName cloud.mysite.ru
Redirect permanent / https://cloud.mysite.ru/
</VirtualHost>

<VirtualHost *:443>
SSLEngine On
SSLCertificateFile ...
SSLCertificateKeyFile ...
SSLCertificateChainFile ...
SSLCACertificateFile ...
ServerName cloud.mysite.ru
ProxyPass / http://192.168.1.84:80/
ProxyPassReverse / http://192.168.1.84:80/
</VirtualHost>

Problem SOLVED. Solution (int config.php):
added:

'thrusted_proxies' => ['IP ADDR Proxy machine'],
'overwritehost' => 'cloud.mysite.ru',
'overwriteprotocol' => 'https',

then exe

occ maintenance:update:thaccess
1 Like