Fix old openinfra.dev Pipermail archive rewrites
Move the legacy archive rewrite rules after the openinfra.dev domain rewrites so that the get processed correctly. Change-Id: Id756785b4f334865d50b819579c0a44eeafec1b5
This commit is contained in:
parent
242322f07c
commit
066ab8bbb1
@ -62,11 +62,6 @@
|
||||
RewriteEngine On
|
||||
RewriteRule ^/robots.txt$ /var/www/robots/robots.txt [L]
|
||||
|
||||
# Handle old Mailman v2/pipermail links
|
||||
RewriteRule "/pipermail/(.*)" "/var/lib/mailman/web-data/mm2archives/%{HTTP_HOST}/public/$1"
|
||||
RewriteRule "/cgi-bin/mailman/listinfo/(.*)" "https://%{HTTP_HOST}/mailman3/lists/$1.%{HTTP_HOST}/"
|
||||
RewriteRule "/cgi-bin/mailman/listinfo" "https://%{HTTP_HOST}/mailman3/lists/"
|
||||
|
||||
# The lists.openinfra.dev site has moved to lists.openinfra.org
|
||||
ServerAlias lists.openinfra.dev
|
||||
RewriteCond %{SERVER_NAME} =lists.openinfra.dev
|
||||
@ -74,6 +69,11 @@
|
||||
RewriteCond %{SERVER_NAME} =lists.openinfra.dev
|
||||
RewriteRule "/(.*)" "https://lists.openinfra.org/$1" [L,R=301]
|
||||
|
||||
# Handle old Mailman v2/pipermail links
|
||||
RewriteRule "/pipermail/(.*)" "/var/lib/mailman/web-data/mm2archives/%{HTTP_HOST}/public/$1"
|
||||
RewriteRule "/cgi-bin/mailman/listinfo/(.*)" "https://%{HTTP_HOST}/mailman3/lists/$1.%{HTTP_HOST}/"
|
||||
RewriteRule "/cgi-bin/mailman/listinfo" "https://%{HTTP_HOST}/mailman3/lists/"
|
||||
|
||||
ProxyPassMatch ^/static/ !
|
||||
ProxyPass "/" "uwsgi://localhost:8080/"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user