mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
nextcloud: Redirect to URL nextcloud/ if ending slash is not given
Tests: - Without the changes, typing https://<domain>/nextcloud does not work. With the changes it redirects to https://<domain>/nextcloud/. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
66533a1af5
commit
1b95a565b0
@ -18,6 +18,15 @@ Redirect 301 /.well-known/nodeinfo /nextcloud/index.php/.well-known/nodeinfo
|
||||
|
||||
Alias /nextcloud/ /var/lib/nextcloud/
|
||||
|
||||
# Redirect /nextcloud to /nextcloud/.
|
||||
<Location ~ ^/nextcloud$>
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_URI} ^/nextcloud$
|
||||
RewriteRule .* /nextcloud/ [R=301,L]
|
||||
</IfModule>
|
||||
</Location>
|
||||
|
||||
<IfModule proxy_fcgi_module>
|
||||
ProxyPassMatch "^/nextcloud/(.*\.php(/.*)?)$" "fcgi://localhost:9000/var/www/html/$1"
|
||||
</IfModule>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user