aboutsummaryrefslogtreecommitdiffstats
path: root/roles/httpd/templates
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2024-06-30 14:57:06 +0200
committerRomain Gonçalves <me@rgoncalves.se>2024-06-30 17:00:40 +0200
commit71f95b50af3e4c4dd3ba240a156001e559297896 (patch)
tree4ab48ffa79a2100f3d2bb644ce6af43574776a06 /roles/httpd/templates
parent3ab7e6329169af04a36004de1ad752e1017aeaab (diff)
downloadrules-71f95b50af3e4c4dd3ba240a156001e559297896.tar.gz
feat(roles/httpd): always index public directory
Diffstat (limited to 'roles/httpd/templates')
-rw-r--r--roles/httpd/templates/httpd.conf.j27
1 files changed, 6 insertions, 1 deletions
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 %}
remember that computers suck.