Thomas Krichel writes:
Stephen J. Turnbull writes
What does "is broken" mean here? Well, since I have debug on, GET "http://127.0.0.1:4386/accounts"
This isn't going to match as far as I can see (but see comments below about customized systems).
I found the line
ProxyPass "/accounts" "http://127.0.0.1:8000/accounts"
That line is almost certainly correct for Apache configuration. It does not mean that the system matches any URL with that prefix.
What will match with that prefix is determined by the content of the URLconf (../site-packages/mailman_web/urls.py). But you probably haven't touched that file (I didn't realize that was a Python module rather than the reference to a filesystem path). Probably that file contains:
urlpatterns = [ path( '', RedirectView.as_view(url=reverse_lazy('list_index'), permanent=True), ), path('mailman3/', include('postorius.urls')), path('archives/', include('hyperkitty.urls')), path('', include('django_mailman3.urls')), path('accounts/', include('allauth.urls')), path('admin/', admin.site.urls), # Include alternate Postorius and HyperKitty URLs. path('postorius/', include('postorius.urls')), path('hyperkitty/', include('hyperkitty.urls')), ]
which means these routes are the ones that match /accounts:
Here are the routes stock Postorius serves from postorius/urls.py:
r'^accounts/subscriptions/$', r'^accounts/per-address-preferences/$', r'^accounts/per-subscription-preferences/$', r'^accounts/mailmansettings/$', r'^accounts/list-options/(?P<member_id>[^/]+)/$',
(venv) mailman@darni:/usr/local/mailman/venv/lib/python3.13/site-packages/postorius$ ls -l urls.py -rw-rw-r-- 1 mailman mailman 8623 Mar 18 08:25 urls.py (venv) mailman@darni:/usr/local/mailman/venv/lib/python3.13/site-packages/postorius$ md5sum urls.py 19b266d9ddec888c2614ea4915c52d68 urls.py
http://127.0.0.1:8000/accounts
should respond without a debugging message,
(You mean with port 4386, right?) It should tell you 404 No such resource, but if you set DEBUG=True it tells you that more verbosely.
I doubt this is any good because fundamentally, the queries to
http://127.0.0.1:8000/accounts
using 8000 here to illustrate don't work.
The question is *how* do they fail.
The URL should reponds other that with a debug output.
What does "GET http://127.0.0.1:4386/accounts/confirm-email/" respond with? (Don't omit the trailing "/".)
Steve
-- GNU Mailman consultant (installation, migration, customization) Sirius Open Source https://www.siriusopensource.com/ Software systems consulting in Europe, North America, and Japan