Hi,
I’ve clearly got something wrong in my configuration, but I can’t work out what.
All my URLs seem to have the “mailman3” part duplicated, i.e.
Https://example.com/mailman3/mailman3/lists
Is where I have to go to get a list of my mailing lists, which just doesn’t seem right.
In my settings.py file I have:
POSTORIUS_TEMPLATE_BASE_URL = 'https://example.com/mailman3/'
If I change the value of this to just https://example.com/ it doesn’t change this,
Where have I gone wrong?
Tim
On Fri, Mar 3, 2023 at 12:56 PM Tim Cutts <tim@thecutts.org> wrote:
Hi,
I’ve clearly got something wrong in my configuration, but I can’t work out what.
All my URLs seem to have the “mailman3” part duplicated, i.e.
Https://example.com/mailman3/mailman3/lists
Is where I have to go to get a list of my mailing lists, which just doesn’t seem right.
In my settings.py file I have:
POSTORIUS_TEMPLATE_BASE_URL = 'https://example.com/mailman3/'
If I change the value of this to just https://example.com/ it doesn’t change this,
Are you using mod_wsgi, perhaps? Did you restart the webserver?
Where have I gone wrong?
I remember I once had this problem and it was with mod_wsgi and I had to change my VirtualHost config to the one below.
--8<---------------cut here---------------start------------->8---
Alias /static "/opt/mailman/mm/static" <Directory "/opt/mailman/mm/static"> Require all granted </Directory> WSGIScriptAlias / /opt/mailman/mm/wsgi.py WSGIPAssAuthorization On <Directory "/opt/mailman/mm/"> <Files wsgi.py> Order deny,allow Allow from all Require all granted </Files> WSGIProcessGroup mailman-web </Directory> --8<---------------cuthere----------------end--------------->8---
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
On 3/3/23 01:55, Tim Cutts wrote:
I’ve clearly got something wrong in my configuration, but I can’t work out what.
All my URLs seem to have the “mailman3” part duplicated, i.e.
Https://example.com/mailman3/mailman3/lists
Is where I have to go to get a list of my mailing lists, which just doesn’t seem right.
In my settings.py file I have:
POSTORIUS_TEMPLATE_BASE_URL = 'https://example.com/mailman3/'
If I change the value of this to just https://example.com/ it doesn’t change this,
That setting has nothing to do with your issue. It only determines the base part of the URL that's used to retrieve templates set in Postorius.
What is your web server configuration? This is probably where the problem lies. See https://docs.mailman3.org/en/latest/install/virtualenv.html#nginx-configurat... for a suggested nginx config and https://docs.mailman3.org/en/latest/install/virtualenv.html#apache-configura... for Apache.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Fri, Mar 3, 2023 at 8:22 PM Mark Sapiro <mark@msapiro.net> wrote:
On 3/3/23 01:55, Tim Cutts wrote:
I’ve clearly got something wrong in my configuration, but I can’t work
out what.
All my URLs seem to have the “mailman3” part duplicated, i.e.
Https://example.com/mailman3/mailman3/lists
Is where I have to go to get a list of my mailing lists, which just
doesn’t seem right.
In my settings.py file I have:
POSTORIUS_TEMPLATE_BASE_URL = 'https://example.com/mailman3/'
If I change the value of this to just https://example.com/ it doesn’t
change this,
That setting has nothing to do with your issue. It only determines the base part of the URL that's used to retrieve templates set in Postorius.
What is your web server configuration? This is probably where the problem lies. See
https://docs.mailman3.org/en/latest/install/virtualenv.html#nginx-configurat... for a suggested nginx config and
https://docs.mailman3.org/en/latest/install/virtualenv.html#apache-configura... for Apache.
Are these proposed VirtualHost configs independent of whether one is using gunicorn/mod_wsgi/uwsgi?
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
On 3/3/23 11:20, Odhiambo Washington wrote:
Are these proposed VirtualHost configs independent of whether one is using gunicorn/mod_wsgi/uwsgi?
They proxy to a wsgi server using http and not uwsgi protocol so they work with any wsgi server that listens on an http socket. They will work with uWSGI and Gunicorn. Apache mod_wsgi is a totally different thing. It implements wsgi protocol directly in Apache, and its configuration is completely different.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thank you - that was the ticket I think. I was using an apache config based on the one I used to have when using the Debian packages of mailman. I’ve just updated the config a bit based on the docs you just pointed me too, and all seems well.
Thanks!
Tim
On 3 Mar 2023, at 17:21, Mark Sapiro <mark@msapiro.net> wrote:
That setting has nothing to do with your issue. It only determines the base part of the URL that's used to retrieve templates set in Postorius.
What is your web server configuration? This is probably where the problem lies. See https://docs.mailman3.org/en/latest/install/virtualenv.html#nginx-configurat... for a suggested nginx config and https://docs.mailman3.org/en/latest/install/virtualenv.html#apache-configura... Apache.
participants (3)
-
Mark Sapiro
-
Odhiambo Washington
-
Tim Cutts