From 71f95b50af3e4c4dd3ba240a156001e559297896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sun, 30 Jun 2024 14:57:06 +0200 Subject: feat(roles/httpd): always index public directory --- roles/httpd/templates/httpd.conf.j2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'roles') diff --git a/roles/httpd/templates/httpd.conf.j2 b/roles/httpd/templates/httpd.conf.j2 index 9bfb562..0c39086 100644 --- a/roles/httpd/templates/httpd.conf.j2 +++ b/roles/httpd/templates/httpd.conf.j2 @@ -27,8 +27,13 @@ server "default" { server "{{ item.domain }}" { listen on localhost port {{ item.port }} log style {{ httpd__log_format }} - root "{{ httpd_pre__chroot_sites_dir }}/{{ item.domain }}" gzip-static + + root "{{ httpd_pre__chroot_sites_dir }}/{{ item.domain }}" + + location "/public/*" { + directory auto index + } } {% endif %} -- cgit v1.2.3