We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34737a6 commit 38e044cCopy full SHA for 38e044c
cookbooks/mailman/templates/default/apache.erb
@@ -84,7 +84,8 @@
84
ScriptAlias /subscribe /usr/lib/cgi-bin/mailman/subscribe
85
ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/
86
87
- <Location ~ "/pipermail/([^/]+)/(2004|2005|2006|2007|2008|2009|2010|2011|2012|2013|2014|2015|2016|2017|2018|2019|2020|2021|2022)">
+ <% last_year = year = Time.now.year - 1 %>
88
+ <Location ~ "/pipermail/([^/]+)/(<%= (2004..last_year).to_a.join('|') %>)">
89
ExpiresActive On
90
ExpiresDefault "access plus 180 days"
91
</Location>
0 commit comments