diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2025-05-21 23:45:10 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2025-05-21 23:55:06 +0200 |
commit | 1843371641f5b3898893df91094412eaeedc8807 (patch) | |
tree | ccee6d658564f7a9836dfa3cb01e2b70d940aab3 /tasks/httpd.yml | |
parent | b94ce2b1572a72975659e661ed9d75dbff7d2ad1 (diff) |
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
Diffstat (limited to 'tasks/httpd.yml')
-rw-r--r-- | tasks/httpd.yml | 4 |
1 files changed, 2 insertions, 2 deletions
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 |