mailman httpd location question
![](https://secure.gravatar.com/avatar/c5bad05c37b6201f0a55b9580d52a61c.jpg?s=120&d=mm&r=g)
Hi,
Under OpenBSD's httpd, my mailman setup gives an HTTP 404 error when 'mysite.com/listinfo' is typed, however 'mysite.com/listinfo/' works.
In order to *solve* this issue, I added 2 different locations pointing to the same cgi script, as:
location "/listinfo" { fastcgi socket "/var/www/run/slowcgi.sock" root "/usr/local/lib/mailman/cgi-bin/listinfo" request strip 1 }
location "/listinfo/*" { fastcgi socket "/var/www/run/slowcgi.sock" root "/usr/local/lib/mailman/cgi-bin/listinfo" request strip 1 }
The same goes for /create and other cgi scripts as well.
Wondering how to make both ways (with ending '/' and without) work?
Is there any parameter configuring this in mailman2?
Best wishes, Mark.
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 3/8/24 11:17 PM, Mark wrote:
Caveat: I know nothing about configuring OpenBSD's httpd.
I'm guessing, but I suspect the above alone would work and the one below is redundant.
No. This is all in your web server.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/0fbcef57d028af495d8c9a5992405f78.jpg?s=120&d=mm&r=g)
On Sat, Mar 9, 2024 at 6:18 PM Mark <markbsdmail2023@gmail.com> wrote:
Hi Mark,
Here is a working tutorial that you can follow.
https://www.quernus.co.uk/2015/09/28/running-mailman-on-openbsd/
Also, please ditch the efforts to run Mailman2 and start with Mailman3:-) https://xn--gckvb8fzb.com/mailman3-on-openbsd-71/
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]
![](https://secure.gravatar.com/avatar/c5bad05c37b6201f0a55b9580d52a61c.jpg?s=120&d=mm&r=g)
Hi Odhiambo, thanks for the feedback!
However the OpenBSD tutorial from quernus is pretty outdated. (syntax errors for both smtpd.conf and httpd.conf)
Actually all I wanted to do is; To combining and make both requests work; 1- /location listinfo and 2- /location listinfo/* (the wildcard here is needed for pages such as; https://list.site.com/listinfo/ourgroupmaillist)
So that, I solved it with adding these extra blocks;
location match "/admin(.*)" {
request rewrite "/admin/%1"
}
location match "/listinfo(.*)" {
request rewrite "/listinfo/%1"
}
location match "/create(.*)" {
request rewrite "/create/%1"
}
Much regards, Mark.
On Sun, Mar 10, 2024 at 10:41 AM Odhiambo Washington <odhiambo@gmail.com> wrote:
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 3/8/24 11:17 PM, Mark wrote:
Caveat: I know nothing about configuring OpenBSD's httpd.
I'm guessing, but I suspect the above alone would work and the one below is redundant.
No. This is all in your web server.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/0fbcef57d028af495d8c9a5992405f78.jpg?s=120&d=mm&r=g)
On Sat, Mar 9, 2024 at 6:18 PM Mark <markbsdmail2023@gmail.com> wrote:
Hi Mark,
Here is a working tutorial that you can follow.
https://www.quernus.co.uk/2015/09/28/running-mailman-on-openbsd/
Also, please ditch the efforts to run Mailman2 and start with Mailman3:-) https://xn--gckvb8fzb.com/mailman3-on-openbsd-71/
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]
![](https://secure.gravatar.com/avatar/c5bad05c37b6201f0a55b9580d52a61c.jpg?s=120&d=mm&r=g)
Hi Odhiambo, thanks for the feedback!
However the OpenBSD tutorial from quernus is pretty outdated. (syntax errors for both smtpd.conf and httpd.conf)
Actually all I wanted to do is; To combining and make both requests work; 1- /location listinfo and 2- /location listinfo/* (the wildcard here is needed for pages such as; https://list.site.com/listinfo/ourgroupmaillist)
So that, I solved it with adding these extra blocks;
location match "/admin(.*)" {
request rewrite "/admin/%1"
}
location match "/listinfo(.*)" {
request rewrite "/listinfo/%1"
}
location match "/create(.*)" {
request rewrite "/create/%1"
}
Much regards, Mark.
On Sun, Mar 10, 2024 at 10:41 AM Odhiambo Washington <odhiambo@gmail.com> wrote:
participants (3)
-
Mark
-
Mark Sapiro
-
Odhiambo Washington