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.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

Related posts:

  1. HTML forms and onclick/onfocus
  2. Using any Debian box as a wireless access point
  3. Redirecting all subdomains to the main domain

2 Comments

  • Posted by Argee on 21. January 2009 at 03:53.

    Isn’t it better to drop the www than to add it in? It’s superfluous.

    • Posted by nicolas on 21. January 2009 at 16:28.

      Well, of course you can do whatever you like better. I just like having having the www subdomain. :-D

Leave a Reply

Your email is never shared. Required fields are marked *

*
*