On 12/26/22 11:08, Guillermo Hernandez (Oldno7) via Mailman-users wrote:
El 26/12/22 a las 19:19, Mark Sapiro escribió:
On 12/26/22 07:42, Odhiambo Washington wrote:
Hi @Guillermo Hernandez (Oldno7) <guillermo@querysoft.es>
Does your https://site.name/user-profile/ work?
Again, Guillermo is using uWSGI, not Apache mod_wsgi
Well... now I am not sure, you know I've been confused before about that.
I was looking at what you posted at https://forums.freebsd.org/threads/mailman-3.61050/#post-488128. I focused on the part beginning with
- initiated the uwsgi with a /usr/local/bin/uwsgi --ini /usr/local/mailman3/uwsgi.ini &
Which is running uwsgi. However I overlooked the mod_wsgi stuff.
In my httpd.conf I have:
##############
LoadModule wsgi_module "/usr/local/lib/python3.9/site-packages/mod_wsgi/server/mod_wsgi-py39.cpython-39.so" WSGIPythonHome "/usr/local" WSGIDaemonProcess hyperkitty threads=25 python-path=/usr/local/mailman3 user=mailman3 group=mailman WSGIProcessGroup hyperkitty ###############
This is all mod_wsgi.
And in then end of my vhost definition file there is this line:
Include "/usr/local/mailman3/apache24.uwsgi.conf"
In that file I have:
######### begin of apache24.uwsgi.conf
Alias /favicon.ico /usr/local/mailman3/static/hyperkitty/favicon.ico Alias /static /usr/local/mailman3/static ######### # for hyperkitty Alias /static/admin /usr/local/mailman3/static/admin Alias /static/CACHE /usr/local/mailman3/static/CACHE Alias /static/django_extensions /usr/local/mailman3/static/django_extensions Alias /static/hyperkitty /usr/local/mailman3/static/hyperkitty Alias /static/mailman3 /usr/local/mailman3/static/hyperkitty Alias /static/django-mailman3 /usr/local/mailman3/static/django-mailman3 Alias /static/rest_framework /usr/local/mailman3/static/rest_framework # for postorius Alias /static/postorius /usr/local/mailman3/static/postorius Alias /static/archives /usr/local/mailman3/static/postorius #####
All the above between #########
and #####
is redundant as you
already have
Alias /static /usr/local/mailman3/static
which will alias any /static/xxx to /usr/local/mailman3/static/xxx
###ErrorLog /var/log/httpd/hyperkitty_error.log ###CustomLog /var/log/httpd/hyperkitty_access.log combined
<Directory "/usr/local/mailman3/static"> Require all granted </Directory> #### esto va en el httpd.conf ##WSGIDaemonProcess hyperkitty threads=25 python-path=/usr/local/mailman3 user=mailman group=mailman ## esta es la de Sapiro #WSGIDaemonProcess mailman-web display-name=mailman-web maximum-requests=1000 umask=0002 ####user=mailman group=mailman ####python-path=/opt/mailman/mm/venv/lib/python3.6/site-packages:/opt/mailman/mm/venv/lib/python3.6 ####python-home=/opt/mailman/mm/venv home=/opt/mailman/mm/var
#### agregado el 08/07/22 WSGIPassAuthorization On ####
WSGIScriptAlias /mailman3 /usr/local/mailman3/wsgi.py process-group=hyperkitty WSGIScriptAlias /hyperkitty /usr/local/mailman3/wsgi.py process-group=hyperkitty WSGIScriptAlias /postorius /usr/local/mailman3/wsgi.py process-group=hyperkitty WSGIScriptAlias /archives /usr/local/mailman3/wsgi.py process-group=hyperkitty
And this is also mod_wsgi.
...
I don't want to put more noise in the list. But I'm confused because I always updated via pip the apache mod_wsgi thinking is was needed for my configuration. If it is not, I will stop updating it.
Based on the above you ARE using Apache mod_wsgi and if you are still also running uwsgi as
/usr/local/bin/uwsgi --ini /usr/local/mailman3/uwsgi.ini &
that is unnecessary.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan