:80>ServerName lists.example.comDocumentRoot /var/www/listsErrorLog /var/log/apache2/lists-error.logCustomLog /var/log/apache2/lists-access.log combined
Options FollowSymLinks AllowOverride NoneAlias /pipermail/ /var/lib/mailman/archives/public/Alias /images/mailman/ /usr/share/images/mailman/ScriptAlias /admin /usr/lib/cgi-bin/mailman/adminScriptAlias /admindb /usr/lib/cgi-bin/mailman/admindbScriptAlias /confirm /usr/lib/cgi-bin/mailman/confirmScriptAlias /create /usr/lib/cgi-bin/mailman/createScriptAlias /edithtml /usr/lib/cgi-bin/mailman/edithtmlScriptAlias /listinfo /usr/lib/cgi-bin/mailman/listinfoScriptAlias /options /usr/lib/cgi-bin/mailman/optionsScriptAlias /private /usr/lib/cgi-bin/mailman/privateScriptAlias /rmlist /usr/lib/cgi-bin/mailman/rmlistScriptAlias /roster /usr/lib/cgi-bin/mailman/rosterScriptAlias /subscribe /usr/lib/cgi-bin/mailman/subscribeScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/ScriptAlias / /usr/lib/cgi-bin/mailman/listinfo
The second to last line ScriptAlias / /usr/lib/cgi-bin/mailman/listinfo is optional; it makes that when you go to http://lists.example.com/, you will be redirected to http://lists.example.com/listinfo. This makes sense if you don't have any files to serve in the document root /var/www/lists.
Next create the document root /var/www/lists, enable the lists.example.com vhost configuration and restart Apache:
mkdir /var/www/lists
a2ensite mailman.conf
/etc/init.d/apache2 restart
Because we are using a vhost here (lists.example.com), we need to adjust the following variables in /etc/mailman/mm_cfg.py:
vi /etc/mailman/mm_cfg.py
View the
Original article