mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +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/
|
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>
|
<IfModule proxy_fcgi_module>
|
||||||
ProxyPassMatch "^/nextcloud/(.*\.php(/.*)?)$" "fcgi://localhost:9000/var/www/html/$1"
|
ProxyPassMatch "^/nextcloud/(.*\.php(/.*)?)$" "fcgi://localhost:9000/var/www/html/$1"
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user