Add redirect for lists.o.o.

And add rewrite module.

Change-Id: I87e922c7454dd281baced2293973e7c1ca2faaef
This commit is contained in:
James E. Blair 2012-07-05 12:14:36 -07:00
parent e126257f7e
commit 014b40f2f2
2 changed files with 10 additions and 0 deletions

View File

@ -8,6 +8,12 @@ class mailman($mailman_host='') {
ensure => installed,
}
file { '/etc/apache2/mods-enabled/rewrite.load':
target => '/etc/apache2/mods-available/rewrite.load',
ensure => link,
require => Package['apache2'],
}
file { "/var/www/index.html":
source => 'puppet:///modules/mailman/index.html',
owner => 'root',
@ -43,6 +49,7 @@ class mailman($mailman_host='') {
target => '/etc/apache2/sites-available/mailman',
require => [
File['/etc/apache2/sites-available/mailman'],
File['/etc/apache2/mods-enabled/rewrite.load'],
],
}

View File

@ -11,6 +11,9 @@
DocumentRoot /var/www
RewriteEngine on
RewriteRule ^/$ /cgi-bin/mailman/listinfo [R]
# We can find mailman here:
ScriptAlias /cgi-bin/mailman/ /usr/lib/cgi-bin/mailman/
# And the public archives: