[Mailman-Users] Re: mailman httpd location question

2024-03-09 Thread Odhiambo Washington
On Sat, Mar 9, 2024 at 6:18 PM Mark  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...@jab.org


[Mailman-Users] Re: mailman httpd location question

2024-03-09 Thread Mark Sapiro

On 3/8/24 11:17 PM, Mark wrote:


Under OpenBSD's httpd, my mailman setup gives an HTTP 404 error when
'mysite.com/listinfo' is
typed, however 'mysite.com/listinfo/' works.



Caveat: I know nothing about configuring OpenBSD's httpd.


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
}



I'm guessing, but I suspect the above alone would work and the one below 
is redundant.



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?


No. This is all in your web server.

--
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
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


[Mailman-Users] mailman httpd location question

2024-03-09 Thread Mark
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.
--
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