Hi, Currently, I use a nginx configuration for mailman. It's work perfectly.
I tried to do the same with Apache, but the statics files are not delivered (404).
Basically, it's the same configuration:
/server {
listen 80; server_name mailing.ddd.fr;
access_log /var/log/nginx/mailing.access.log; error_log /var/log/nginx/mailing.error.log;
location /static/ { alias /opt/mailman/static/; expires 30d; }
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / { proxy_pass http://localhost:8000; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } }
<VirtualHost *:80> ServerName mailing.ddd.fr
ErrorLog ${APACHE_LOG_DIR}/mailing.error.log CustomLog ${APACHE_LOG_DIR}/mailing.access.log combined
<Location /static/> Alias "/opt/mailman/static/" </Location>
<Location /> ProxyPass http://localhost:8000/ ProxyPassReverse http://localhost:8000/ ProxyPreserveHost On </Location> </VirtualHost>/
I missed something ?
Thanks.