On 5/7/23 10:51, Volkmar Grote wrote:
thanks for the quick reply. I am one step closer to a solution, "http://127.0.0.1:8000/postorius/lists/?all-lists#" seems to work now. I get the functionality, but it looks ugly w/o any graphics, for which I get yet another, slightly similar, error message:
Page not found (404)
Request Method: GET Request URL: http://127.0.0.1:8000/static/postorius/img/mailman_logo_small_trans.png
...
Nginx, /etc/nginx/conf.d/me.domain.de.conf
server { listen 80; listen [::]:80;
server_name me.domain.de; ... location /static/ { alias /opt/mailman/mm/static/; }
Again, many thanks in advance for any clue
The above in nginx is correct, but you aren't getting the static files via nginx. You need to go to a URL like http://me.domain.de/postorius/lists/. Going to http://127.0.0.1:8000/postorius/lists/ goes directly to your wsgi server and doesn't involve nginx at all. You need to go to port 80 where nginx is listening and nginx then proxys requests to 127.0.0.1:8000. Do you also have
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}
in /etc/nginx/conf.d/me.domain.de.conf. You need that.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan