Merge "Use UA filter in mailman apache vhost"
This commit is contained in:
commit
f57a5aa61b
@ -164,6 +164,11 @@
|
|||||||
- apache2-utils
|
- apache2-utils
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: Add UA filter macro to apache config
|
||||||
|
# This is used in the mailman apache vhost.
|
||||||
|
include_role:
|
||||||
|
name: apache-ua-filter
|
||||||
|
|
||||||
- name: Apache modules
|
- name: Apache modules
|
||||||
apache2_module:
|
apache2_module:
|
||||||
state: present
|
state: present
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
CustomLog ${APACHE_LOG_DIR}/{{ mailman_sites.0.listdomain }}-access.log combined
|
CustomLog ${APACHE_LOG_DIR}/{{ mailman_sites.0.listdomain }}-access.log combined
|
||||||
|
|
||||||
|
Use UserAgentFilter
|
||||||
|
|
||||||
# Use mod rewrite to redirect as we want to preserve the FQDN for each
|
# Use mod rewrite to redirect as we want to preserve the FQDN for each
|
||||||
# mm3 vhost.
|
# mm3 vhost.
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
@ -45,6 +47,10 @@
|
|||||||
Require local
|
Require local
|
||||||
</Location>
|
</Location>
|
||||||
|
|
||||||
|
# This macro relies on mod rewrite rules so put it before any of the
|
||||||
|
# actual rewrites we want to perform.
|
||||||
|
Use UserAgentFilter
|
||||||
|
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
RewriteRule ^/robots.txt$ /var/www/robots/robots.txt [L]
|
RewriteRule ^/robots.txt$ /var/www/robots/robots.txt [L]
|
||||||
RewriteRule "/pipermail/(.*)" "/var/lib/mailman/web-data/mm2archives/%{HTTP_HOST}/public/$1"
|
RewriteRule "/pipermail/(.*)" "/var/lib/mailman/web-data/mm2archives/%{HTTP_HOST}/public/$1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user