From bbff078045c5d85ec41745e7273b8a3953955564 Mon Sep 17 00:00:00 2001 From: mickael e Date: Thu, 10 Jan 2019 13:34:57 -0500 Subject: [PATCH] Remove Apache ErrorDocument directives on Journalist Interface These directives were returning incorrect values for the Journalist API. Errors should be handled in the application to ensure headers are sent. The API should return appropirate error codes, and the web interface should always redirect to the login page. --- .../roles/app/templates/sites-available/journalist.conf | 7 ------- 1 file changed, 7 deletions(-) diff --git a/install_files/ansible-base/roles/app/templates/sites-available/journalist.conf b/install_files/ansible-base/roles/app/templates/sites-available/journalist.conf index a4719c4fbdf..6dec14bec46 100644 --- a/install_files/ansible-base/roles/app/templates/sites-available/journalist.conf +++ b/install_files/ansible-base/roles/app/templates/sites-available/journalist.conf @@ -36,13 +36,6 @@ Header unset Etag # Limit the max submitted size of requests. LimitRequestBody 524288000 -#Redirect error pages to ensure headers are sent -ErrorDocument 400 /notfound -ErrorDocument 401 /notfound -ErrorDocument 403 /notfound -ErrorDocument 404 /notfound -ErrorDocument 500 /error - Options None AllowOverride None