I tried to follow:
and
whereas I wasn’t able to get it working with the template file.
So I created /etc/apache2/sites-enabled/nextcloud.conf and pasted following in it:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin admin@domain.de
ServerName cloud.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
SSLCACertificateFile /etc/univention/ssl/ucsCA/CAcert.pem
SSLCertificateChainFile /etc/univention/letsencrypt/intermediate.pem
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
</IfModule>
ProxyPass / http://localhost:40000/
ProxyPassReverse / http://localhost:40000/
</VirtualHost>
</IfModule>
I also modified the config file by
univention-app shell nextcloud
apt update
apt install vim
vim /var/www/html/config/config.php
'overwrite.cli.url' => 'https://cloud.domain.de',
'overwritewbroot' => '/',
'htaccess.RewriteBase' => '/',
exit
I restarted apache
/etc/init.d/apache2 restart
And type cloud.domain.de
I get redirected to Nextcloud, but it displays an internal server error. I have no idea why.
cloud.domain.de/nextcloud/ works, just as from the beginning on.
What am I doing wrong?
That’s the error from NC:
{"reqId":"YjQY0D752nWmz7ZXujrB","level":3,"time":"2019-02-16T21:39:31+00:00","remoteAddr":"92.116.161.180","user":"--","app":"index","method":"GET","url":"\/login",
"message":{"Exception":"Exception","Message":"The requested uri(\/login) cannot be processed by the script '\/nextcloud\/index.php')","Code":0,"Trace":[{"file":"\/var\/www\/html\/lib\/base.php","line":930,"function":"getRawPathInfo","class":"OC\\AppFramework\\Http\\Request","type":"->","args":[]},{"file":"\/var\/www\/html\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/var\/www\/html\/lib\/private\/AppFramework\/Http\/Request.php","Line":742,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/70.0.3538.102 Safari\/537.36 OPR\/57.0.3098.116","version":"14.0.6.0"}