From 1843371641f5b3898893df91094412eaeedc8807 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 21 May 2025 23:45:10 +0200 Subject: HTTPd: Use `Content-Type: application/x-empty` for 404 error pages. This matches PHP's finfo_file() behavior for empty files, cf. https://stackoverflow.com/questions/24015038/why-does-php-file-info-return-inode-x-empty-for-empty-text-files --- 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 2e1fa98..ea2dee0 100644 --- a/tasks/httpd.yml +++ b/tasks/httpd.yml @@ -55,8 +55,8 @@ owner=root group=root mode=0755 -- name: Create /var/www/webmap/_.txt - copy: dest=/var/www/webmap/_.txt content="" +- name: Create /var/www/webmap/_empty + copy: dest=/var/www/webmap/_empty content="" owner=root group=root mode=0644 -- cgit v1.2.3