Add redirect for lists.o.o.
And add rewrite module. Change-Id: I87e922c7454dd281baced2293973e7c1ca2faaef
This commit is contained in:
parent
b051b36a4d
commit
76ca29460a
@ -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'],
|
||||
],
|
||||
}
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user