[Mailman-Users] How to alias /lists/mylist to /lists/mailman/listinfo/mylist?
How can I change/add to the RedirectMatch alias structures in my httpd.conf file excerpt below such that a /lists/mylist URL path gets redirected to /lists/mailman/listinfo/mylist while still supporting the /lists redirect to /lists/mailman/listinfo? I messed around with some grouping ( (.*) -- $1) RedirectMatch lines with no success. Thanks for any help -Matt ## ## GNU Mailman stuff as per ## http://forum.qmailrocks.org/viewtopic.php?p=3274#3274 ## Directory /usr/local/mailman/cgi-bin/ Options ExecCGI AllowOverride None Order allow,deny Allow from all /Directory Directory /data/mailman/archives/public/ Options FollowSymLinks AllowOverride None Order allow,deny Allow from all /Directory ScriptAlias /lists/mailman /usr/local/mailman/cgi-bin Alias /pipermail /data/mailman/archives/public RedirectMatch ^/lists[/]*$ https://mydomain.com/lists/mailman/listinfo/ RedirectMatch ^/lists/mailman[/]*$ https://mydomain.com/lists/mailman/listinfo/ -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp
Re: [Mailman-Users] How to alias /lists/mylist to /lists/mailman/listinfo/mylist?
On Mon, 2005-10-03 at 11:44 -0500, Matt England wrote: How can I change/add to the RedirectMatch alias structures in my httpd.conf file excerpt below such that a /lists/mylist URL path gets redirected to /lists/mailman/listinfo/mylist while still supporting the /lists redirect to /lists/mailman/listinfo? I believe you will need to perform a URL rewrite which special cases the component mailman when following the lists component. This type of functionality is available in the mod_rewrite module. http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html Practical examples here: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html Be aware that mod_rewrite is not an easy module to master, at a minimum you will need a solid understanding of regular expressions. I think what you need to do is craft a rule which first attempts to match /lists/mailman and if that matches terminate the rule processing outputting the matched URL, else continue to process and rewrite the URL to the per list URL. BTW, rewrite != redirect -- John Dennis [EMAIL PROTECTED] -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp