I have managed to move my nextcloud-app from a 5.0 server to another on running 5.2.
Everything works fine only one thing isn’t: the rewrite to nextcloud.domain.de
Working:
- nextcloud.domain.de/nextcloud
- even my clients: desktop etc. can connect.
my old 5.0 vhost looked like this:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin admin@domain.de
ServerName nextcloud.domain.de
DocumentRoot /var/www
<Directory /var/www>
Options +FollowSymlinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www
SetEnv HTTP_HOME /var/www
</Directory>
SSLEngine on
SSLProxyEngine on
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLCertificateFile /etc/univention/letsencrypt/signed_chain.crt
SSLCertificateKeyFile /etc/univention/letsencrypt/domain.key
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
</IfModule>
ProxyPass / http://127.0.0.1:40002/ retry=0
ProxyPassReverse / http://127.0.0.1:40002/
I of course have changed the port to the new value, but that isn’t enough.
When I access nextcloud.domain.de I get an Internal Server Error (500 I guess).
I can paste my config.php too - but the changes to
'trusted_domains' => ...,
'overwrite.cli.url' => ...,
'overwriteprotocol' => 'https',
'overwritewbroot' => '/',
'htaccess.RewriteBase' => '/',
worked the on the last install.
Maybe someone allready has a vhost and config.php to share.
Best,
Bernd