
Hello, and thanks in advance for any assistance.
I followed the installation guide at: https://docs.mailman3.org/en/latest/install/virtualenv.html#
I opted to use nginx and uwsgi. I can access mailman in the browser at https://SERVER_IP/mailman3 but when I try to use the hostname I get an nginx 400 bad request error.
It seems like there is an issue with the nginx proxy. I used the example config and updated the required information:
server {
listen 443 ssl default_server; listen [::]:443 ssl default_server;
server_name HOSTNAME_OF_SERVER; location /static/ { alias /opt/mailman/web/static/; }
location / { proxy_pass http://127.0.0.1:8000; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $remote_addr;
} ssl_certificate /etc/pki/tls/certs/our_certificate.crt; ssl_certificate_key /etc/pki/tls/private/our_key.key;
}
I thought maybe that because Im using uwsgi I should try the ngx_http_uwsgi_module and uwsgi_params in the nginx config, but that did not work, or I didnt use the correct syntax.
Not sure what to try next!

On 3/7/25 8:48 PM, zachr@mta.ca wrote:
Hello, and thanks in advance for any assistance.
I followed the installation guide at: https://docs.mailman3.org/en/latest/install/virtualenv.html#
I opted to use nginx and uwsgi. I can access mailman in the browser at https://SERVER_IP/mailman3 but when I try to use the hostname I get an nginx 400 bad request error.
This is probably due to your setting for ALLOWED_HOSTS not including the IP for hostname. Check Django's log which in your installation should be at /opt/mailman/web/logs/mailmanweb.log.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
zachr@mta.ca