mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
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 <coding@schilljs.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user