Hi, list!
On one of my sites, I want to have all Mailman3 links to go under /mailman3. Even though, the Login link goes to a URL like:
https://list.punktskriftutvalget.no/accounts/login/
How can I ensure it goes to https://list.punktskriftutvalget.no/mailman3/accounts/login/
Thanks,
Lars
On 4/11/23 10:46, Lars Bjørndal wrote:
Hi, list!
On one of my sites, I want to have all Mailman3 links to go under /mailman3. Even though, the Login link goes to a URL like:
https://list.punktskriftutvalget.no/accounts/login/
How can I ensure it goes to https://list.punktskriftutvalget.no/mailman3/accounts/login/
See this thread https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/V...
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thanks a lot. Maybe I've done a mistake, it doesn.t work.
At the bottom of /etc/mailman3/settings.py I have:
ROOT_URLCONF = 'urls'
cat /etc/mailman3/urls.py
[...]
urlpatterns = [ path( '', RedirectView.as_view(url=reverse_lazy('list_index'), permanent=True), ), path('lists/mailman3/', include('postorius.urls')), path('lists/archives/', include('hyperkitty.urls')), path('lists/', include('django_mailman3.urls')), path('lists/accounts/', include('allauth.urls')), path('lists/admin/', admin.site.urls), ]
In Apache config for the domain, I now have:
<IfModule mod_proxy.c> ProxyPreserveHost On ProxyPass "lists/mailman3" "http://127.0.0.1:8000/lists/mailman3" ProxyPass "lists/archives" "http://127.0.0.1:8000/lists/archives" ProxyPass "lists/accounts" "http://127.0.0.1:8000/lists/accounts" ProxyPass "lists/admin" "http://127.0.0.1:8000/lists/admin" ProxyPass "lists/user-profile" "http://127.0.0.1:8000/lists/user-profile" </IfModule>
Restarted mailmanweb, httpd and mailman3.
If I go to list.punktskriftutvalget.no/mailman3/, I get a 404 Not Found response in browser.
So what's wrong, do you think?
Thanks
Lars
On Tue, Apr 11, 2023 at 10:52:47AM -0700, Mark Sapiro wrote:
On 4/11/23 10:46, Lars Bjørndal wrote:
Hi, list!
On one of my sites, I want to have all Mailman3 links to go under /mailman3. Even though, the Login link goes to a URL like:
https://list.punktskriftutvalget.no/accounts/login/
How can I ensure it goes to https://list.punktskriftutvalget.no/mailman3/accounts/login/
See this thread https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/V...
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
This message sent to lars@lamasti.net
On 4/11/23 12:04, Lars Bjørndal wrote:
Thanks a lot. Maybe I've done a mistake, it doesn.t work.
At the bottom of /etc/mailman3/settings.py I have:
ROOT_URLCONF = 'urls'
cat /etc/mailman3/urls.py
[...]
urlpatterns = [ path( '', RedirectView.as_view(url=reverse_lazy('list_index'), permanent=True), ), path('lists/mailman3/', include('postorius.urls')), path('lists/archives/', include('hyperkitty.urls')), path('lists/', include('django_mailman3.urls')), path('lists/accounts/', include('allauth.urls')), path('lists/admin/', admin.site.urls), ]
In Apache config for the domain, I now have:
<IfModule mod_proxy.c> ProxyPreserveHost On ProxyPass "lists/mailman3" "http://127.0.0.1:8000/lists/mailman3" ProxyPass "lists/archives" "http://127.0.0.1:8000/lists/archives" ProxyPass "lists/accounts" "http://127.0.0.1:8000/lists/accounts" ProxyPass "lists/admin" "http://127.0.0.1:8000/lists/admin" ProxyPass "lists/user-profile" "http://127.0.0.1:8000/lists/user-profile" </IfModule>
Restarted mailmanweb, httpd and mailman3.
If I go to list.punktskriftutvalget.no/mailman3/, I get a 404 Not Found response in browser.
So what's wrong, do you think?
You followed https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/V... literally. The literal instructions where to access everything via URLs like https://mydomain.org/lists/....
If you were to replace lists
with mailman3
everywhere in the abpve,
you would then access HyperKitty via a URL like
https://list.punktskriftutvalget.no/mailman3/archives/
and Postorius via
https://list.punktskriftutvalget.no/mailman3/mailman3/
If that's not what you want, it's more complicated and some things might not be possible. What exactly do you want for access to Postorius, HyperKitty, user accounts, user profiles and the Django admin UI?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thanks a lot.
[Mark]
[...]
If you were to replace
lists
withmailman3
everywhere in the abpve, you would then access HyperKitty via a URL likehttps://list.punktskriftutvalget.no/mailman3/archives/
and Postorius via
https://list.punktskriftutvalget.no/mailman3/mailman3/
If that's not what you want, it's more complicated and some things might not be possible. What exactly do you want for access to Postorius, HyperKitty, user accounts, user profiles and the Django admin UI?
I would like to have postorius at .../mailman3 and admin, accounts etc. under .../mailman3/admin .../mailman3/accounts etc.
Thanks
Lars
On 4/11/23 23:08, Lars Bjørndal wrote:
I would like to have postorius at .../mailman3 and admin, accounts etc. under .../mailman3/admin .../mailman3/accounts etc.
Try this.
In urls.py
urlpatterns = [
path(
'',
RedirectView.as_view(url=reverse_lazy('list_index'),
permanent=True),
),
path('mailman3/archives/', include('hyperkitty.urls')),
path('', include('django_mailman3.urls')),
path('mailman3/accounts/', include('allauth.urls')),
path('mailman3/admin/', admin.site.urls),
path('mailman3/', include('postorius.urls')),
]
In apache
<IfModule mod_proxy.c>
ProxyPreserveHost On
ProxyPass "/mailman3/archives"
"http://127.0.0.1:8000/mailman3/archives"
ProxyPass "/mailman3/accounts"
"http://127.0.0.1:8000/mailman3/accounts"
ProxyPass "/mailman3/admin" "http://127.0.0.1:8000/mailman3/admin"
ProxyPass "user-profile" "http://127.0.0.1:8000/user-profile"
ProxyPass "/mailman3" "http://127.0.0.1:8000/mailman3"
</IfModule>
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thanks a lot!
After further consideration, I will stay with the defaults, e.g. have accounts, archive etc at the same level as mailman3.
Lars
On Wed, Apr 12, 2023 at 08:32:27AM -0700, Mark Sapiro wrote:
On 4/11/23 23:08, Lars Bjørndal wrote:
I would like to have postorius at .../mailman3 and admin, accounts etc. under .../mailman3/admin .../mailman3/accounts etc.
Try this.
In urls.py
urlpatterns = [ path( '', RedirectView.as_view(url=reverse_lazy('list_index'), permanent=True), ), path('mailman3/archives/', include('hyperkitty.urls')), path('', include('django_mailman3.urls')), path('mailman3/accounts/', include('allauth.urls')), path('mailman3/admin/', admin.site.urls), path('mailman3/', include('postorius.urls')), ]
In apache
<IfModule mod_proxy.c> ProxyPreserveHost On ProxyPass "/mailman3/archives" "http://127.0.0.1:8000/mailman3/archives" ProxyPass "/mailman3/accounts" "http://127.0.0.1:8000/mailman3/accounts" ProxyPass "/mailman3/admin" "http://127.0.0.1:8000/mailman3/admin" ProxyPass "user-profile" "http://127.0.0.1:8000/user-profile" ProxyPass "/mailman3" "http://127.0.0.1:8000/mailman3" </IfModule>
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
This message sent to lars@lamasti.net
participants (2)
-
Lars Bjørndal
-
Mark Sapiro