Mailman3-web/Postorius behind Lighttpd
Hi,
I'm using Mailman 3.3.3 (Tom Sawyer) on Debian Bullseye 11.2 from packages :
#dpkg -l | grep mailman ii mailman3 3.3.3-1 all Mailing list management system ii mailman3-full 3.3.3-1 all Full Mailman3 mailing list management suite (metapackage) ii mailman3-web 0+20200530-2 all Django project integrating Mailman3 Postorius and HyperKitty ii python3-django-mailman3 1.3.5-2 all Django library to help interaction with Mailman3 (Python 3 version) ii python3-mailman-hyperkitty 1.1.0-10 all Mailman3 plugin to archive emails with HyperKitty ii python3-mailmanclient 3.3.2-1 all Python bindings for Mailman3 REST API (Python 3 version)
I can access from localhost to http://127.0.0.1:8000/ which move me correctly to http://127.0.0.1:8000/postorius/lists/ and all seem to be correct.
But 127.0.0.1:8000 listen only in localhost : #netstat -tanpu | grep 8000 tcp 0 0 127.0.0.1:8000 0.0.0.0:* LISTEN 626175/python3
So I try to use my lighttpd as proxy as recommanded with this config :
scgi.protocol = "uwsgi" scgi.server = ( "/" => (( "host" => "127.0.0.1", "port" => 8000, "check-local" => "disable" )), )
but it's return me a "502 Bad Gateway".
I see nothing on there logs :
- /var/log/lighttpd/error.log
- /var/log/mailman3/web/error.log
- /var/log/mailman3/web/access.log
But on the file : /var/log/mailman3/web/mailman-web.log
I can see that :
QUERY_STRING REQUEST_URI/postorius/lists/REDIRECT_STATUS200 SCRIPT_NAME" 400 -
I don't know what I'm doing wrong ...
There is a way to solve it with lighttpd or bind the port 8000 to 0.0.0.0 instead 127.0.0.1 (which is not recommanded) ?
Thank you in advance.
Best regards, Elodie
On 2/16/22 10:00, Élodie BOSSIER via Mailman-users wrote:
I'm using Mailman 3.3.3 (Tom Sawyer) on Debian Bullseye 11.2 from packages :
When you install Debian packages, your primary support resource is Debian.
...
I can access from localhost to http://127.0.0.1:8000/ which move me correctly to http://127.0.0.1:8000/postorius/lists/ and all seem to be correct.
But 127.0.0.1:8000 listen only in localhost : #netstat -tanpu | grep 8000 tcp 0 0 127.0.0.1:8000 0.0.0.0:* LISTEN 626175/python3
Which is as it should be.
So I try to use my lighttpd as proxy as recommanded with this config :
scgi.protocol = "uwsgi" scgi.server = ( "/" => (( "host" => "127.0.0.1", "port" => 8000, "check-local" => "disable" )), )
but it's return me a "502 Bad Gateway".
I don't know anything about lighttpd, but the fact that you can access http://127.0.0.1:8000/ from localhost and that seems to work suggests that you shouldn't be using uwsgi protocol, but just a straight http proxy. See https://redmine.lighttpd.net/projects/lighttpd/wiki/HowToPythonWSGI#lighttpd... and https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModProxy
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thanks for the response, I solved it with a simple proxy.server instead scgi.server.
participants (2)
-
Mark Sapiro
-
Élodie BOSSIER