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 <odhia...@gmail.com> wrote: > > > On Sat, Mar 9, 2024 at 6:18 PM Mark <markbsdmail2...@gmail.com> wrote: > >> 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? >> > > 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] > ------------------------------------------------------ Mailman-Users mailing list -- mailman-users@python.org To unsubscribe send an email to mailman-users-le...@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/ Member address: arch...@mail-archive.com