From 15e444b37b8259d12e366731f835c2f874218061 Mon Sep 17 00:00:00 2001 From: zamentur Date: Sat, 10 Jan 2015 23:41:00 +0100 Subject: [PATCH] [fix] Avoid to get a 404 error on logout This change allows to access to an URL without the end slash (like https//domain.tld/owncloud ). Owncloud calls this URL on logout. --- conf/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 2a66919..0405892 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,4 +1,4 @@ -location PATHTOCHANGE/ { +location PATHTOCHANGE { alias ALIASTOCHANGE; if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; -- 2.0.0