Differences between revisions 1 and 2
Revision 1 as of 2008-05-27 13:26:49
Size: 1996
Editor: terri
Comment:
Revision 2 as of 2008-06-02 20:39:33
Size: 1998
Editor: msapiro
Comment: Added trailing slash to DEFAULT_URL_PATTERN examples.
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#pragma page-filename DOC/versions/4292629 #pragma page-filename DOC/versions/4292641
Line 16: Line 16:
  DEFAULT_URL_PATTERN = 'http://%s/cgi-bin/mailman'   DEFAULT_URL_PATTERN = 'http://%s/cgi-bin/mailman/'
Line 22: Line 22:
  DEFAULT_URL_PATTERN = 'https://%s/cgi-bin/mailman'   DEFAULT_URL_PATTERN = 'https://%s/cgi-bin/mailman/'

4.53. Why has my change to mm_cfg.py been ignored?

After making any change in mm_cfg.py, you must restart Mailman with

  ${PREFIX}/bin/mailmanctl restart

in order to pick up the changes.

While this is necessary, it is not sufficient to change the attributes of existing lists and archives.

As an example, if you had changed the DEFAULT_URL_PATTERN record in etc/mailman/mm_cfg.py from :

  DEFAULT_URL_PATTERN = 'http://%s/cgi-bin/mailman/'

... to:

  DEFAULT_URL_PATTERN = 'https://%s/cgi-bin/mailman/'

... then you will also need to run:

  ${PREFIX}/bin/withlist -l -r fix_url crochet-discuss

... where 'crochet-discuss' is the name of the mailing list. Or more likely run:

  ${PREFIX}/bin/withlist -l -a -r fix_url

to fix all the existing lists.

After you have done this (after first restarting mailmanctl), the links in the generated admin screen (for example, https://www.foo.org/mailman/admin/crochet-discuss/general) will correctly begin with 'https://', instead of 'http://', that is, the generated html will now look similar to:

  ...
  <li><a href="https://www.foo.org/mailman/admin/crochet-discuss/general"> <strong>[General Options]</strong></a>
  <li><a href="https://www.foo.org/mailman/admin/crochet-discuss/passwords"> Passwords</a>
  <li><a href="https://www.foo.org/mailman/admin/crochet-discuss/language"> Language options</a>
  ...

Likewise, such changes will not affect various URLs in existing archives until the list has been fixed as above and then the archive rebuilt with

  ${PREFIX}/bin/arch --wipe <listname>

Last changed on Mon Jul 10 02:44:03 2006 by Mark Sapiro Converted from the Mailman FAQ Wizard

This is one of many Frequently Asked Questions.

MailmanWiki: DOC/Why has my change to mm_cfg.py been ignored? (last edited 2008-07-31 14:00:06 by dunxd)