[Mailman-Users] mailman as the default apache website

Mark Sapiro msapiro at value.net
Fri Nov 25 06:10:06 CET 2005


Steven Jones wrote:

>I assume this can be done?
>
>Is instead of www.lists.ac.nz/mailman I want www.lists.ac.nz which leads
>to the mailman opening page.
>
>Have not been able to get it to work so far....
>
>Docs?

http://httpd.apache.org/


If you're willing to just have http://www.lists.ac.nz redirect to
http://www.lists.ac.nz/mailman/listinfo and still require things like
http://www.lists.ac.nz/mailman/admin to go to the admin pages, etc.,
all you need is

RedirectMatch ^[/]*$   http://www.lists.ac.nz/mailman/listinfo

If you want for example to be able to get to the admin page with a URL
like http://www.lists.ac.nz/admin, it's more complicated. Apache's
regexps for RedirectMatch may not be powerful enough to do this
easily. It may require a RewriteCond and RewriteRule.

If you want to eliminate the 'mailman/' part altogether, you'll need to
eliminate it from DEFAULT_URL_PATTERN by redefining it in mm_cfg.py
and run fix_url (bin/fix_url.py for help) on all existing lists and
put something like

ScriptAlias /       /path/to/mailman/cgi-bin/

in the apache config.

-- 
Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan




More information about the Mailman-Users mailing list