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:
Joas Schilling
2017-03-20 13:03:10 +01:00
parent 0a1698d456
commit daa543e4e0

View File

@@ -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;
}