summaryrefslogtreecommitdiffstats
path: root/roles/mailman/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/mailman/templates')
-rw-r--r--roles/mailman/templates/vhost.conf17
1 files changed, 5 insertions, 12 deletions
diff --git a/roles/mailman/templates/vhost.conf b/roles/mailman/templates/vhost.conf
index bd2f01e..8e4de27 100644
--- a/roles/mailman/templates/vhost.conf
+++ b/roles/mailman/templates/vhost.conf
@@ -1,14 +1,7 @@
-{% for i in '80', '443' %}
-<VirtualHost *:{{ i }}>
+<Directory /usr/lib/mailman/cgi-bin/>
+ DirectoryIndex listinfo
+</Directory>
- <Directory /usr/lib/mailman/cgi-bin/>
- DirectoryIndex listinfo
- </Directory>
+RedirectMatch ^/$ /mailman/
- RedirectMatch ^/$ /mailman/
-
- RedirectMatch ^/mailman[/]*$ /mailman/listinfo
- ServerName {{ website_url | default( ansible_hostname ) }}
-
-</VirtualHost>
-{% endfor %}
+RedirectMatch ^/mailman[/]*$ /mailman/listinfo