Mailman, HTTP POST and 301 redirects

After changing my domain configuration a little (do 301 redirects from nkuttler.de to www.nkuttler.de/ etc.) I noticed that my mailman web interface stopped working. I tried to moderate, change settings etc., but once the form was submitted nothing happened.

After some digging I found the problem: 301 redirects don't pass POST parameters. And when I configured the mailing list I set the domain to nkuttler.de. So mailman sets the form action to http://nkuttler.de/foo/bar, this gets redirected to the correct domain, but the POST data is gone. How do you change the web host? I couldn't find anything in the admin interface, it looks like you have to do it on the command line.

cd /var/lib/mailman/bin
./withlist -l -r fix_url list -u www.nkuttler.de/

This is the precise command for Debian, on other distros you'll have to find the correct location.Update: I'm not quite sure how I missed it, but the host_name parameter should allow you to change this setting as well. For other questions about the default URL you can also read the Where can I change a list or the default URL used for the web interface? FAQ entry.

Published on Nov. 9, 2008 at 8:01 p.m. by Nicolas and tagged mailman, redirect, howto. You can follow the discussion with the comment feed for this post.

2 comments

  • avatar
    Argee wrote this comment on Jan. 21, 2009, 3:53 a.m.
    Isn't it better to drop the www than to add it in? It's superfluous.
    Reply to this comment
    • avatar
      nicolas wrote this comment on Jan. 21, 2009, 4:28 p.m.
      Well, of course you can do whatever you like better. I just like having having the www subdomain. :-D
      Reply to this comment

Start a new thread

Cancel reply
Markdown. Syntax highlighting with <code lang="php"><?php echo "Hello, world!"; ?></code> etc.