From aba2da0757d6d459baa431786c815c74da4e830c Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sat, 24 May 2025 08:36:56 +0200 Subject: Serve empty error pages as text/plain not application/x-empty. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit So Firefox and Chromium serve a blank page resp. a generic ”HTTP ERROR 404” page. With application/x-empty Chromium serves the following This site can’t be reached The webpage at https://example.net/… might be temporarily down or it may have moved permanently to a new web address. ERR_INVALID_RESPONSE which can be confusing (even though only OpenLayer should consume those error pages). This reverts commit 1843371641f5b3898893df91094412eaeedc8807. --- tasks/httpd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tasks/httpd.yml') diff --git a/tasks/httpd.yml b/tasks/httpd.yml index ea2dee0..2e1fa98 100644 --- a/tasks/httpd.yml +++ b/tasks/httpd.yml @@ -55,8 +55,8 @@ owner=root group=root mode=0755 -- name: Create /var/www/webmap/_empty - copy: dest=/var/www/webmap/_empty content="" +- name: Create /var/www/webmap/_.txt + copy: dest=/var/www/webmap/_.txt content="" owner=root group=root mode=0644 -- cgit v1.2.3