On 12/22/21 9:22 PM, David Newman wrote:
On my system that file lives here:
/opt/mailman/venv/lib/python3.9/site-packages/mailman_web/urls.py
It appears that you have installed following https://docs.mailman3.org/en/latest/install/virtualenv.html#virtualenv-insta... and in that case, this is the file.
But the error persists after this addition and restarting MM3 and mailmanweb and nginx:
url(r'^mailman/', include('postorius.urls')),
There is this 404 error in uwsgi.log:
[pid: 73356|app: 0|req: 3/3] 127.0.0.1 () {48 vars in 1544 bytes} [Wed Dec 22 21:13:48 2021] GET /mailman/admindb/listname => generated 5328 bytes in 14 msecs (HTTP/1.0 404) 6 headers in 197 bytes (1 switches on core 0)
However, that's not the issue. You originally reported and I didn't look closely enough:
Update: The above worked fine until MM3 informed a list owner of pending subscription requests, with a URL like this:
https://lists.example.com/mailman/admindb/listname
and that URL returned a 404 error.
That URL is from a Mailman 2.1 installation. Are you still running Mailman 2.1? If so, you need to support Mailman 2.1's CGIs. In Apache, this would be something like
ScriptAlias /mailman/ /parh/to/mailman/cgi-bin/
but nginx doesn't do that. You would need something like
location /mailman/ { proxy_pass <something that can serve Mailman 2.1's CGIs.> }
The something could be apache or ??
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan