diff --git a/plinth/modules/nextcloud/data/usr/share/freedombox/etc/apache2/conf-available/nextcloud-freedombox.conf b/plinth/modules/nextcloud/data/usr/share/freedombox/etc/apache2/conf-available/nextcloud-freedombox.conf index 6aa23576c..c9925b897 100644 --- a/plinth/modules/nextcloud/data/usr/share/freedombox/etc/apache2/conf-available/nextcloud-freedombox.conf +++ b/plinth/modules/nextcloud/data/usr/share/freedombox/etc/apache2/conf-available/nextcloud-freedombox.conf @@ -18,6 +18,15 @@ Redirect 301 /.well-known/nodeinfo /nextcloud/index.php/.well-known/nodeinfo Alias /nextcloud/ /var/lib/nextcloud/ +# Redirect /nextcloud to /nextcloud/. + + + RewriteEngine On + RewriteCond %{REQUEST_URI} ^/nextcloud$ + RewriteRule .* /nextcloud/ [R=301,L] + + + ProxyPassMatch "^/nextcloud/(.*\.php(/.*)?)$" "fcgi://localhost:9000/var/www/html/$1"