Commit e225b695 authored by Wágner Ferenc's avatar Wágner Ferenc
Browse files

Provide a simple switch to deactivate the Mailman web interface

parent b0698c28
<!--?xml version="1.0" encoding="UTF-8" ?-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Karbantartás/Maintenance</title>
</head>
<body>
<h1>Karbantartás</h1>
<p>Kérjük, próbálkozzon újra később.</p>
<h1>Maintenance</h1>
<p>Please try again later.</p>
</body>
</html>
......@@ -53,14 +53,17 @@
when: vault_open is defined
notify: Reload Apache
- name: Provide favicon.ico
- name: Provide static files
become: yes
copy:
src: favicon.ico
dest: /var/www/html/favicon.ico
src: "{{ item }}"
dest: /var/www/html/{{ item }}
owner: root
group: root
mode: 0644
with_items:
- favicon.ico
- maintenance.html
- name: Configure Munin plugins
become: yes
......
......@@ -98,6 +98,9 @@ ServerName https://{{ list_domain }}
ServerAdmin wferi@niif.hu
DocumentRoot /var/www/html
# Catch-all page for temporary deactivation:
#AliasMatch .* /var/www/html/maintenance.html
# Not a ScriptAlias, because the page text asks to modify the URL for hidden lists:
RedirectMatch permanent ^/$ /mailman/listinfo/
ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/
......@@ -124,4 +127,7 @@ Alias /illik.html /usr/share/mailman/hu/illik.html
<Files favicon.ico>
Require all granted
</Files>
<Files maintenance.html>
Require all granted
</Files>
</Directory>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment