<VirtualHost 1.2.3.4:80>
ServerAdmin webmaster@n.net
ServerName lists.n.net
ServerAlias lists.n.net
# We want to redirect everything into /mailman/
RedirectMatch /$ http://lists.n.net/mailman/listinfo
# Why isn't this documented by mailman?
DocumentRoot /var/www/empty/
# By default
# You can access the web interface of mailman at:
# http://<hostname>/cgi-bin/mailman/listinfo
# However, we've set it differently here:
ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/
# Thus we've also:
# In this case you need to set the DEFAULT_URL_PATTERN in
# /etc/mailman/mm_cfg.py to http://%s/mailman/ for the cookie
# authentication code to work. Note that you need to change the base
# URL for all the already-created lists as well.
Alias /pipermail/ /var/lib/mailman/archives/public/
Alias /images/mailman/ /usr/share/images/mailman/
ErrorLog /var/log/apache2/mailman-http-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/mailman-http-access.log combined
ServerSignature Off
</VirtualHost>