From daa543e4e0af354cc026ab8bded30bf65d1cedfc Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 20 Mar 2017 13:03:10 +0100 Subject: [PATCH] No more 403 and 404 redirecting The error pages broke OCS endpoints which return 403 and 404 https://github.com/nextcloud/server/issues/3847 Signed-off-by: Joas Schilling --- admin_manual/installation/nginx_nextcloud_9x.rst | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/admin_manual/installation/nginx_nextcloud_9x.rst b/admin_manual/installation/nginx_nextcloud_9x.rst index 152f3102d36..5c3a63f1639 100644 --- a/admin_manual/installation/nginx_nextcloud_9x.rst +++ b/admin_manual/installation/nginx_nextcloud_9x.rst @@ -84,9 +84,6 @@ your nginx installation. # This module is currently not supported. #pagespeed off; - error_page 403 /core/templates/403.php; - error_page 404 /core/templates/404.php; - location / { rewrite ^ /index.php$uri; } @@ -221,10 +218,7 @@ your nginx installation. # Uncomment if your server is build with the ngx_pagespeed module # This module is currently not supported. #pagespeed off; - - error_page 403 /nextcloud/core/templates/403.php; - error_page 404 /nextcloud/core/templates/404.php; - + location /nextcloud { rewrite ^ /nextcloud/index.php$uri; }