12 Apr
2023
12 Apr
'23
3:32 p.m.
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